Skip to content

Commit 148dd0b

Browse files
committed
Adds test for --help
1 parent 92e7850 commit 148dd0b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_scorep.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,3 +463,10 @@ def test_force_finalize(scorep_env, instrumenter):
463463
trace = OTF2_Trace(trace_path)
464464
assert OTF2_Region("__main__:foo") in trace
465465
assert OTF2_Region("__main__:bar") not in trace
466+
467+
468+
def test_help():
469+
std_out, std_err = utils.call_with_scorep("", ["--help"])
470+
471+
assert "Usage: python -m scorep" in std_out
472+
assert "--help" in std_out

0 commit comments

Comments
 (0)