From b1b75409304c9d7ffbf4276f9667b3f989f27df2 Mon Sep 17 00:00:00 2001 From: Ryan McCormick Date: Thu, 17 Aug 2023 12:19:36 -0700 Subject: [PATCH] Check for log error on failing to find explicit load model --- qa/L0_lifecycle/test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qa/L0_lifecycle/test.sh b/qa/L0_lifecycle/test.sh index 4d0ab84517..109e0a355a 100755 --- a/qa/L0_lifecycle/test.sh +++ b/qa/L0_lifecycle/test.sh @@ -1057,6 +1057,12 @@ if [ "$SERVER_PID" != "0" ]; then kill $SERVER_PID wait $SERVER_PID fi +# check server log for the error messages to make sure they're printed +if [ `grep -c "model not found in any model repository" $SERVER_LOG` == "0" ]; then + echo -e "\n***\n*** Server log ${SERVER_LOG} did not print model load failure for non-existent model\n***" + echo -e "\n***\n*** Test Failed\n***" + RET=1 +fi LOG_IDX=$((LOG_IDX+1))