From 7bc32c485a6871dd96d665481eb3f208f18dc2c2 Mon Sep 17 00:00:00 2001 From: Ali Dowair Date: Tue, 1 Mar 2022 13:32:36 -0800 Subject: [PATCH] Fix failed robustness job script if TEST_RC unset (#1780) If the TEST_RC environment variable is unset, the robustness_job.sh script exits prematurely due to an unbound variable error, instead of starting the robustness job without that argument. This commit evaluates said variable conditionally so that the script doesn't fail. --- tools/robustness-job.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/robustness-job.sh b/tools/robustness-job.sh index 27c958225..5f4f6eace 100755 --- a/tools/robustness-job.sh +++ b/tools/robustness-job.sh @@ -112,6 +112,7 @@ if [[ "${ENGINE_MODE}" = SERVER ]]; then fi # Source any pre-test rc files if provided +TEST_RC="${TEST_RC:-}" if [[ -f ${TEST_RC} ]]; then source ${TEST_RC} fi