Skip to content

Commit c48ad26

Browse files
relax expected message success check
1 parent a9f7246 commit c48ad26

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/actions/scripts/run-utp-tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ for raw_test in "${tests[@]}"; do
122122
echo "::error::Test $test_name was expected to fail but succeeded"
123123
test_failed=1
124124
fi
125-
if [ -n "$exp_msg" ] && [ "$message_found" -eq 0 ]; then
125+
126+
# Only insist on the expected message if both invocations claimed success.
127+
if [ -n "$exp_msg" ] && [ "$message_found" -eq 0 ] && [ "$validate_rc" -eq 0 ] && [ "$build_rc" -eq 0 ]; then
126128
echo "::error::Test $test_name did not emit expected message '$exp_msg'"
127129
test_failed=1
128130
fi

0 commit comments

Comments
 (0)