blob: d8be3d32f908b62c760686f469cecfb3522cbcd4 [file]
############################################################################
# Copyright (C) SchedMD LLC.
############################################################################
import re
import atf
def test_usage():
"""Verify sdiag --usage has the correct format"""
output = atf.run_command_output("sdiag --usage", fatal=True)
assert re.search(r"Usage: sdiag(?:\s+\[-{1,2}[^\]]+\])+$", output) is not None