summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/presubmit_check.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/presubmit_check.sh b/util/presubmit_check.sh
index 41045042f1..a0b1488ccd 100755
--- a/util/presubmit_check.sh
+++ b/util/presubmit_check.sh
@@ -20,7 +20,7 @@ if [[ -n "${changed}" ]]; then
exit 1
fi
-if [[ ! -e util/ec3po/.tests-passed ]]; then
+if [[ ! -e util/ec3po/.tests-passed ]] && [[ -n "${ec3po_files}" ]]; then
echo 'Unit tests have not passed. Please run "util/ec3po/run_tests.sh".'
exit 1
fi