We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f7246 commit c48ad26Copy full SHA for c48ad26
1 file changed
.github/actions/scripts/run-utp-tests.sh
@@ -122,7 +122,9 @@ for raw_test in "${tests[@]}"; do
122
echo "::error::Test $test_name was expected to fail but succeeded"
123
test_failed=1
124
fi
125
- if [ -n "$exp_msg" ] && [ "$message_found" -eq 0 ]; then
+
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
128
echo "::error::Test $test_name did not emit expected message '$exp_msg'"
129
130
0 commit comments