import pytest
from plumbum import local

from benchbuild.cli.slurm import Slurm


def test_slurm_command(tmp_path):
    with pytest.raises(SystemExit) as pytest_wrapped_e:
        with local.cwd(tmp_path):
            Slurm.run(argv=['slurm', '-E', 'raw', 'test'])
    assert pytest_wrapped_e.type == SystemExit
    assert pytest_wrapped_e.value.code == 0

import pytest
from plumbum import local

from benchbuild.cli.slurm import Slurm


def test_slurm_command(tmp_path):
    with pytest.raises(SystemExit) as pytest_wrapped_e:
        with local.cwd(tmp_path):
            Slurm.run(argv=['slurm', '-E', 'empty', 'test'])
    assert pytest_wrapped_e.type == SystemExit
    assert pytest_wrapped_e.value.code == 0

switch test experiment to 'empty'