blob: f6e31e031ccca18be747d6a8de399f1620d2edea [file] [log] [blame]
############################################################################
# Copyright (C) SchedMD LLC.
############################################################################
import atf
import re
def test_help():
"""Verify scontrol --help displays the help page"""
output = atf.run_command_output("scontrol --help", fatal=True)
assert re.search(r"Valid <COMMAND> values are:", output) is not None
assert re.search(r"reconfigure", output) is not None
assert re.search(r"show <ENTITY> \[<ID>\]", output) is not None
assert re.search(r"version", output) is not None