No "running the following control files" message when none being run
BUG=None
TEST=Run a suite with run_remote_tests.sh, no longer see confusing and
useless "Running the following control files ${FLAGS_iterations} times:"
message.
Change-Id: Ibde09d8c3128e216336d322d2185524efca850fc
Reviewed-on: https://gerrit.chromium.org/gerrit/45793
Tested-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Commit-Queue: Aviv Keshet <akeshet@chromium.org>
diff --git a/run_remote_tests.sh b/run_remote_tests.sh
index b78dc01..7c29b03 100755
--- a/run_remote_tests.sh
+++ b/run_remote_tests.sh
@@ -504,10 +504,12 @@
fi
fi
- info "Running the following control files ${FLAGS_iterations} times:"
- for control_file in ${control_files_to_run}; do
- info " * ${control_file}"
- done
+ if [[ -n "${control_files_to_run}" ]]; then
+ info "Running the following control files ${FLAGS_iterations} times:"
+ for control_file in ${control_files_to_run}; do
+ info " * ${control_file}"
+ done
+ fi
test_control_file() {
control_file=$(remove_quotes "${control_file}")