diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-12 16:26:08 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-12 16:27:07 -0800 |
commit | cf1e50a80976fae95eef4ab05d961200b04e2346 (patch) | |
tree | 3c2fbcbdc3dde2127c49e04dafbcab04844d2273 /kokoro/runtime_tests | |
parent | 46a36b64d5164d1ac887aa528d23bb2f2c74489e (diff) |
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
Diffstat (limited to 'kokoro/runtime_tests')
-rwxr-xr-x | kokoro/runtime_tests/runtime_tests.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |