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