Skip to content

Commit cdc8102

Browse files
committed
Fix unittests
1 parent 4aba90f commit cdc8102

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unittests/test_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -781,8 +781,8 @@ def test_maxfail_invalid_option(run_reframe):
781781
)
782782
assert 'Traceback' not in stdout
783783
assert 'Traceback' not in stderr
784-
assert "--maxfail is not a valid integer: 'foo'" in stdout
785-
assert returncode == 1
784+
assert "--maxfail: invalid int value: 'foo'" in stderr
785+
assert returncode == 2
786786

787787

788788
def test_maxfail_negative(run_reframe):
@@ -793,7 +793,7 @@ def test_maxfail_negative(run_reframe):
793793
)
794794
assert 'Traceback' not in stdout
795795
assert 'Traceback' not in stderr
796-
assert "--maxfail should be a non-negative integer: '-2'" in stdout
796+
assert "--maxfail should be a non-negative integer: -2" in stdout
797797
assert returncode == 1
798798

799799

0 commit comments

Comments
 (0)