blob: f4dcde26e92cf529187235001d508998e74a5f90 [file] [log] [blame]
############################################################################
# Copyright (C) SchedMD LLC.
############################################################################
import atf
import pytest
# Setup
@pytest.fixture(scope="module", autouse=True)
def setup():
atf.require_slurm_running()
def test_chdir():
"""Verify srun --chdir sets appropriate working directory"""
tmp_dir = "/tmp"
output = atf.run_command_output("srun --chdir=" + tmp_dir + " pwd", fatal=True)
assert output.strip("\n") == tmp_dir