From 9347efbb4e476d6fc8d497c8a5b98292eafa5bb5 Mon Sep 17 00:00:00 2001 From: Takashi Matsuo Date: Wed, 12 Oct 2022 11:30:13 -0700 Subject: [PATCH] fix: fixes the test driver when there's no change Example failure: #563 --- ci/cloudbuild/run_test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/cloudbuild/run_test.sh b/ci/cloudbuild/run_test.sh index c1af9c6a..1fc424bd 100644 --- a/ci/cloudbuild/run_test.sh +++ b/ci/cloudbuild/run_test.sh @@ -100,4 +100,8 @@ for d in ${subdirs[@]}; do fi done -${btlr_bin} run ${dirs_to_test[@]} -- ${test_script} +if [ ${#dirs_to_test[@]} -gt 0 ]; then + ${btlr_bin} run ${dirs_to_test[@]} -- ${test_script} +else + echo "Nothing changed in the samples" +fi