blob: c68976a281db1faf215ff5d58d7a691e3a298870 [file]
############################################################################
# Copyright (C) SchedMD LLC.
############################################################################
import re
import atf
def test_usage():
"""Verify sbcast --usage has the correct format"""
output = atf.run_command_output("sbcast --usage", fatal=True)
assert (
re.search(r"Usage: sbcast (?:\[-+[a-zA-Z-]+]\s)+SOURCE DEST\n$", output)
is not None
)