blob: 73e63fa7126f5d79efe43d9d31ba8c769fc7abf1 [file] [log] [blame]
############################################################################
# Copyright (C) SchedMD LLC.
############################################################################
import atf
import re
import pytest
# Setup
@pytest.fixture(scope="module", autouse=True)
def setup():
atf.require_slurm_running()
def test_v():
output = atf.run_command_error("srun -v id")
assert re.search(r"verbose\s+: 1", output) is not None
output = atf.run_command_error("srun -vvvv id")
assert re.search(r"verbose\s+: 4", output) is not None