summaryrefslogtreecommitdiff
path: root/t/perf/p0000-perf-lib-sanity.sh
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2021-12-25 08:16:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-12-25 22:24:58 (GMT)
commit9ccab75608fb87d82ccec1ab71cc915d7f8dc5a0 (patch)
tree5cc78f1e2c969d56bba4c454623ba74b16c3ba91 /t/perf/p0000-perf-lib-sanity.sh
parente9d7761bb94f20acc98824275e317fa82436c25d (diff)
downloadgit-9ccab75608fb87d82ccec1ab71cc915d7f8dc5a0.zip
git-9ccab75608fb87d82ccec1ab71cc915d7f8dc5a0.tar.gz
git-9ccab75608fb87d82ccec1ab71cc915d7f8dc5a0.tar.bz2
t/perf: do not run tests in user's $SHELL
The environment variable $SHELL is usually set to the user's interactive shell. Our build and test scripts never use $SHELL because there are no guarantees about its input language. Instead, we use /bin/sh which should be a POSIX shell. For systems with a broken /bin/sh, we allow to override that path via SHELL_PATH. To run tests in yet another shell we allow to override SHELL_PATH with TEST_SHELL_PATH. Perf tests run in $SHELL via a wrapper defined in t/perf/perf-lib.sh, so they break with e.g. SHELL=python. Use TEST_SHELL_PATH like in other tests. TEST_SHELL_PATH is always defined because t/perf/perf-lib.sh includes t/test-lib.sh, which includes GIT-BUILD-OPTIONS. Acked-by: Jeff King <peff@peff.net> Signed-off-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/p0000-perf-lib-sanity.sh')
0 files changed, 0 insertions, 0 deletions