Skip to content

Commit 1dfd43e

Browse files
author
Takashi Matsuo
authored
fix: fixes the test driver when there's no change (#572)
Example failure: #563
1 parent 7820eac commit 1dfd43e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci/cloudbuild/run_test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,8 @@ for d in ${subdirs[@]}; do
100100
fi
101101
done
102102

103-
${btlr_bin} run ${dirs_to_test[@]} -- ${test_script}
103+
if [ ${#dirs_to_test[@]} -gt 0 ]; then
104+
${btlr_bin} run ${dirs_to_test[@]} -- ${test_script}
105+
else
106+
echo "Nothing changed in the samples"
107+
fi

0 commit comments

Comments
 (0)