diff options
author | c-parsons <cparsons@google.com> | 2019-05-06 15:03:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 15:03:55 -0400 |
commit | 67215655bf6ce349b2b88ae4f5945a706f8ce959 (patch) | |
tree | 6f23a4c6e03723e46bd49f49442905b7108bf0e1 /tests | |
parent | ffad33e9bfc60bdfa98292ca655a4e7035792046 (diff) | |
download | bazel-skylib-67215655bf6ce349b2b88ae4f5945a706f8ce959.tar.gz |
Use TEST_SRCDIR for shell tests (#145)
Fixes https://github.com/bazelbuild/bazel-skylib/issues/143
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/analysis_test_test.sh | 1 | ||||
-rwxr-xr-x | tests/unittest_test.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/analysis_test_test.sh b/tests/analysis_test_test.sh index 476fd41..5dc52b8 100755 --- a/tests/analysis_test_test.sh +++ b/tests/analysis_test_test.sh @@ -150,4 +150,5 @@ function test_transitive_target_fails() { expect_log "This rule should never work" } +cd "$TEST_TMPDIR" run_suite "analysis_test test suite" diff --git a/tests/unittest_test.sh b/tests/unittest_test.sh index e4c8008..5b9d43f 100755 --- a/tests/unittest_test.sh +++ b/tests/unittest_test.sh @@ -131,4 +131,5 @@ function test_fail_unexpected_passing_test() { expect_log "Expected failure of target_under_test, but found success" } +cd "$TEST_TMPDIR" run_suite "unittest test suite" |