Skip to content

Commit 7fd8516

Browse files
authored
Check for log error on failing to find explicit load model (#6204)
1 parent 328614e commit 7fd8516

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

qa/L0_lifecycle/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,12 @@ if [ "$SERVER_PID" != "0" ]; then
10571057
kill $SERVER_PID
10581058
wait $SERVER_PID
10591059
fi
1060+
# check server log for the error messages to make sure they're printed
1061+
if [ `grep -c "model not found in any model repository" $SERVER_LOG` == "0" ]; then
1062+
echo -e "\n***\n*** Server log ${SERVER_LOG} did not print model load failure for non-existent model\n***"
1063+
echo -e "\n***\n*** Test Failed\n***"
1064+
RET=1
1065+
fi
10601066

10611067
LOG_IDX=$((LOG_IDX+1))
10621068

0 commit comments

Comments
 (0)