blob: e7a996663621c0a3512627c0f83e57705815f621 [file] [log] [blame]
#!/bin/bash
# shift stderr to stdout.
exec 2>&1
# Executing the test log will page it.
echo 'exec ${PAGER:-/usr/bin/less} "$0" || exit 1'
DIR="$TEST_SRCDIR"
# 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.
cd "$DIR" || { echo "Could not chdir $DIR"; exit 1; }
"$@"