Skip to content

Commit

Permalink
Adjust the expected exit code in test
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Jan 9, 2025
1 parent 01f4fb7 commit 65c7e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/status/base/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ rlJournalStart
rlLog "There should be the heading and one run"
rlAssertGrep "2" "lines"

rlRun "tmt status -i /not/a/valid/runid | tee output" 0 "Invalid ID"
rlRun "tmt status -i /not/a/valid/runid | tee output" 2 "Invalid ID"
rlRun "wc -l output | tee lines" 0 "Get the number of lines"
rlLog "There should only be the heading"
rlAssertGrep "1" "lines"
Expand Down

0 comments on commit 65c7e17

Please sign in to comment.