File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
3- # Copyright 2018-2025 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3+ # Copyright 2018-2026 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
44#
55# Redistribution and use in source and binary forms, with or without
66# modification, are permitted provided that the following conditions
@@ -428,6 +428,9 @@ def test_model_specific_infer(self):
428428 self .assertTrue (False , "unexpected error {}" .format (ex ))
429429
430430
431+ EXPECTED_MODEL_STATS : int = 144
432+
433+
431434class ModelMetadataTest (tu .TestResultCollector ):
432435 """
433436 These tests must be run after the ServerMetadataTest. See test.sh
@@ -723,8 +726,8 @@ def test_infer_stats_no_model(self):
723726 stats = infer_stats .model_stats
724727 self .assertEqual (
725728 len (stats ),
726- 125 ,
727- "expected 125 infer stats for all ready versions of all model" ,
729+ EXPECTED_MODEL_STATS ,
730+ f "expected { EXPECTED_MODEL_STATS } infer stats for all ready versions of all model" ,
728731 )
729732
730733 except InferenceServerException as ex :
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # Copyright (c) 2018-2025 , NVIDIA CORPORATION. All rights reserved.
2+ # Copyright (c) 2018-2026 , NVIDIA CORPORATION. All rights reserved.
33#
44# Redistribution and use in source and binary forms, with or without
55# modification, are permitted provided that the following conditions
@@ -71,13 +71,13 @@ rm -f $CLIENT_LOG
7171python $SERVER_STATUS_TEST ServerMetadataTest >> $CLIENT_LOG 2>&1
7272if [ $? -ne 0 ]; then
7373 cat $CLIENT_LOG
74- echo -e " \n***\n*** Test Failed\n***"
74+ echo -e " \n***\n*** ServerMetadataTest Failed\n***"
7575 RET=1
7676else
7777 check_test_results $TEST_RESULT_FILE $EXPECTED_NUM_TESTS_SMDT
7878 if [ $? -ne 0 ]; then
7979 cat $CLIENT_LOG
80- echo -e " \n***\n*** Test Result Verification Failed\n***"
80+ echo -e " \n***\n*** ServerMetadataTest Result Verification Failed\n***"
8181 RET=1
8282 fi
8383fi
@@ -100,13 +100,13 @@ set +e
100100python $SERVER_STATUS_TEST ModelMetadataTest >> $CLIENT_LOG 2>&1
101101if [ $? -ne 0 ]; then
102102 cat $CLIENT_LOG
103- echo -e " \n***\n*** Test Failed\n***"
103+ echo -e " \n***\n*** ModelMetadataTest Failed\n***"
104104 RET=1
105105else
106106 check_test_results $TEST_RESULT_FILE $EXPECTED_NUM_TESTS_MMDT
107107 if [ $? -ne 0 ]; then
108108 cat $CLIENT_LOG
109- echo -e " \n***\n*** Test Result Verification Failed\n***"
109+ echo -e " \n***\n*** ModelMetadataTest Result Verification Failed\n***"
110110 RET=1
111111 fi
112112fi
You can’t perform that action at this time.
0 commit comments