Skip to content

Commit 4c36442

Browse files
authored
test: fix: L0_server_status (#8827)
1 parent 6fec528 commit 4c36442

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

qa/L0_server_status/server_status_test.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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+
431434
class 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:

qa/L0_server_status/test.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
7171
python $SERVER_STATUS_TEST ServerMetadataTest >>$CLIENT_LOG 2>&1
7272
if [ $? -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
7676
else
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
8383
fi
@@ -100,13 +100,13 @@ set +e
100100
python $SERVER_STATUS_TEST ModelMetadataTest >>$CLIENT_LOG 2>&1
101101
if [ $? -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
105105
else
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
112112
fi

0 commit comments

Comments
 (0)