Skip to content

Commit a84d7c6

Browse files
laraPProcaisa
andauthored
simplify code in test.sh
Co-authored-by: ocaisa <alan.ocais@cecam.org>
1 parent 7aa3bc3 commit a84d7c6

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

bot/test.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,9 @@ fi
225225
TEST_STEP_ARGS+=("--extra-bind-paths" "/sys/fs/cgroup:/hostsys/fs/cgroup:ro")
226226

227227
# add options required to handle NVIDIA support
228-
# Accept that this may fail
229-
set +e
230-
verify_nvidia-smi
231-
ec=$?
232-
if [ ${ec} -eq 0 ]; then
228+
if verify_nvidia-smi; then
233229
TEST_STEP_ARGS+=("--nvidia" "run")
234230
fi
235-
set -e
236231

237232
# prepare arguments to test_suite.sh (specific to test step)
238233
declare -a TEST_SUITE_ARGS=()

0 commit comments

Comments
 (0)