blob: 3225751b7fdea80ab84f3e1f792b885676945f5f [file]
############################################################################
# Copyright (C) SchedMD LLC.
############################################################################
import re
import atf
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