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.
This commit is contained in:
Ali Dowair
2022-03-01 13:32:36 -08:00
committed by GitHub
parent 813927fe7e
commit 7bc32c485a

View File

@@ -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