| ############################################################################ |
| # 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 |