Skip to content

Commit 29c2dd6

Browse files
authored
test: Fix removed model repo for noautofill_noconfig and invalid_platform (#8129)
1 parent c48ebdf commit 29c2dd6

File tree

4 files changed

+4
-92
lines changed

4 files changed

+4
-92
lines changed

qa/L0_model_config/noautofill_test.py

Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
unexpected platform type 'onnxruntim' for invalid_platform
1+
unexpected 'platform' and 'backend' pair, got:onnxruntim, onnxruntime

qa/L0_model_config/special_cases/noautofill_noconfig/expected

Lines changed: 0 additions & 1 deletion
This file was deleted.

qa/L0_model_config/test.sh

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ for modelpath in \
258258
done
259259

260260
# Copy other required models
261+
mkdir -p special_cases/invalid_platform/1
262+
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/onnx_float32_float32_float32/1/model.onnx \
263+
special_cases/invalid_platform/1/
261264

262265
# Create runtime escape scenario
263266
mkdir -p special_cases/runtime_escape/1 special_cases/runtime_escape/dummy_runtime
@@ -400,34 +403,6 @@ for TARGET in `ls special_cases`; do
400403
fi
401404
done
402405

403-
# Run noautofill unittest
404-
SERVER_ARGS="--model-repository=`pwd`/models --model-control-mode=explicit --log-verbose=1"
405-
SERVER_LOG=$SERVER_LOG_BASE.special_case_noautofill_test.log
406-
407-
rm -fr models && mkdir models
408-
cp -r special_cases/noautofill_noconfig models/.
409-
410-
echo -e "Test on special_cases/noautofill_test" >> $CLIENT_LOG
411-
412-
run_server
413-
if [ "$SERVER_PID" == "0" ]; then
414-
echo -e "\n***\n*** Failed to start $SERVER\n***"
415-
cat $SERVER_LOG
416-
exit 1
417-
fi
418-
419-
set +e
420-
python noautofill_test.py >> $CLIENT_LOG 2>&1
421-
if [ $? -ne 0 ]; then
422-
cat $CLIENT_LOG
423-
echo -e "\n***\n*** Python NoAutoFill Test Failed\n***"
424-
RET=1
425-
fi
426-
set -e
427-
428-
kill $SERVER_PID
429-
wait $SERVER_PID
430-
431406
for TRIAL in $TRIALS; do
432407
# Run all tests that require no autofill but that add the platform to
433408
# the model config before running the test

0 commit comments

Comments
 (0)