diff --git a/test/run_envoy_tests.sh b/test/run_envoy_tests.sh index 998ec880f81c1..ed9237f7aa59d 100755 --- a/test/run_envoy_tests.sh +++ b/test/run_envoy_tests.sh @@ -5,13 +5,7 @@ set -e SOURCE_DIR=$1 BINARY_DIR=$2 -# These directories have the Bazel meaning described at -# https://bazel.build/versions/master/docs/test-encyclopedia.html. In particular, TEST_SRCDIR is -# where we expect to find the generated outputs of various scripts preparing input data (these are -# not only the actual source files!). -: ${TEST_TMPDIR:=/tmp/envoy_test_tmp} -: ${TEST_SRCDIR:=/tmp/envoy_test_runfiles} -export TEST_TMPDIR TEST_SRCDIR +source $SOURCE_DIR/test/setup_test_env.sh mkdir -p $TEST_TMPDIR diff --git a/test/setup_test_env.sh b/test/setup_test_env.sh new file mode 100755 index 0000000000000..1fe0ad38e9391 --- /dev/null +++ b/test/setup_test_env.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# These directories have the Bazel meaning described at +# https://bazel.build/versions/master/docs/test-encyclopedia.html. In particular, TEST_SRCDIR is +# where we expect to find the generated outputs of various scripts preparing input data (these are +# not only the actual source files!). +: ${TEST_TMPDIR:=/tmp/envoy_test_tmp} +: ${TEST_SRCDIR:=/tmp/envoy_test_runfiles} +export TEST_TMPDIR TEST_SRCDIR