From cf1e50a80976fae95eef4ab05d961200b04e2346 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Wed, 12 Feb 2020 16:26:08 -0800 Subject: Minor runtime test fixes. * Allow scripts/common.sh to be sourced from outside the scripts/ directory * Fix passing empty args to Bazel, which causes the tool to exit with a failure even if the command succeeds. PiperOrigin-RevId: 294785456 --- kokoro/runtime_tests/runtime_tests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'kokoro/runtime_tests') diff --git a/kokoro/runtime_tests/runtime_tests.sh b/kokoro/runtime_tests/runtime_tests.sh index 9ee991e42..73a58f806 100755 --- a/kokoro/runtime_tests/runtime_tests.sh +++ b/kokoro/runtime_tests/runtime_tests.sh @@ -14,7 +14,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -source $(dirname $0)/common.sh +# Run in the root of the repo. +cd "$(dirname "$0")" +cd "$(git rev-parse --show-toplevel)" + +source scripts/common.sh if [ ! -v RUNTIME_TEST_NAME ]; then echo 'Must set $RUNTIME_TEST_NAME' >&2 -- cgit v1.2.3