Skip to content
Snippets Groups Projects
Commit 1cbc3240 authored by Thomas Rast's avatar Thomas Rast Committed by Junio C Hamano
Browse files

perf: load test-lib-functions from the correct directory


Loading it in the subshells still referred to $TEST_DIRECTORY/..,
which was only correct in preliminary versions of perf-lib.sh

Signed-off-by: default avatarThomas Rast <trast@student.ethz.ch>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 56a33c8f
No related branches found
No related tags found
No related merge requests found
...@@ -38,4 +38,9 @@ test_expect_success 'test_export works with weird vars' ' ...@@ -38,4 +38,9 @@ test_expect_success 'test_export works with weird vars' '
test "$bar" = "weird # variable" test "$bar" = "weird # variable"
' '
test_perf 'test-lib-functions correctly loaded in subshells' '
: >a &&
test_path_is_file a
'
test_done test_done
...@@ -119,7 +119,7 @@ test_run_perf_ () { ...@@ -119,7 +119,7 @@ test_run_perf_ () {
test_export_="test_cleanup" test_export_="test_cleanup"
export test_cleanup test_export_ export test_cleanup test_export_
/usr/bin/time -f "%E %U %S" -o test_time.$i "$SHELL" -c ' /usr/bin/time -f "%E %U %S" -o test_time.$i "$SHELL" -c '
. '"$TEST_DIRECTORY"/../test-lib-functions.sh' . '"$TEST_DIRECTORY"/test-lib-functions.sh'
test_export () { test_export () {
[ $# != 0 ] || return 0 [ $# != 0 ] || return 0
test_export_="$test_export_\\|$1" test_export_="$test_export_\\|$1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment