blob: 98c1aa6441cbad6b91bd5e1e5b096d9efbbb21b5 [file] [log] [blame]
############################################################################
# Copyright (C) SchedMD LLC.
############################################################################
import atf
import re
def test_usage():
"""Verify sstat --usage has the correct format"""
output = atf.run_command_output("sstat --usage", fatal=True)
assert re.search(r"Usage: sstat \[options\] -j <job.*step", output) is not None
assert re.search(r"Use --help for help", output) is not None