Skip to content

Commit b8f9198

Browse files
authored
Cover more command strings in run_command.sh (NVIDIA#4114)
This fixes a bug in codediff CI where we currently do not recognize some tests as GOOGLETEST because they are launched through a script that shards the tests. This adds a substring to match that case and adds a couple other cases.
1 parent 047cf8d commit b8f9198

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

tools/codediff/run_command.sh

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
#
66
# run_command.sh - run a single command and record environment info
77
#
8+
9+
if [ "${BASH_VERSINFO:-0}" -lt 4 ]
10+
then
11+
# Required for fallthrough token ;& in case statements
12+
echo "This script requires bash 4.0+"
13+
exit 1
14+
fi
15+
816
set -e
917
set -o pipefail
1018
usage() {
@@ -210,14 +218,21 @@ if [[ -z $commandtype ]]
210218
then
211219
case "$testcmd" in
212220
*test_nvfuser*)
221+
;&
222+
*tutorial_*)
223+
;&
224+
*split_binary_nvfuser_tests*)
213225
commandtype="GOOGLETEST"
214226
;;
227+
*split_nvbench*)
228+
;&
215229
*nvfuser_bench*)
216230
commandtype="GOOGLEBENCH"
217231
;;
218232
*pytest*)
219-
commandtype="PYTEST"
220-
;;
233+
;&
234+
*tests/python*)
235+
;&
221236
*python_tests*)
222237
commandtype="PYTEST"
223238
;;

0 commit comments

Comments
 (0)