diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/test/test-setup.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/test/test-setup.sh b/tools/test/test-setup.sh index eab081af59..d5ee1ba799 100755 --- a/tools/test/test-setup.sh +++ b/tools/test/test-setup.sh @@ -22,6 +22,11 @@ echo 'exec ${PAGER:-/usr/bin/less} "$0" || exit 1' DIR="$TEST_SRCDIR" +if [ ! -z "$TEST_WORKSPACE" ] +then + DIR="$DIR"/"$TEST_WORKSPACE" +fi + # normal commands are run in the exec-root where they have access to # the entire source tree. By chdir'ing to the runfiles root, tests only # have direct access to their declared dependencies. |