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