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: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Thomas Rast committed Mar 8, 2012 at 09:54 UTC 1cbc32403b20f064ec7c295c6603f6fd16662bce
2 files changed +6 -1
t/perf/p0000-perf-lib-sanity.sh
+5
@@ -38,4 +38,9 @@ test_expect_success 'test_export works with weird vars' '
38 test "$bar" = "weird # variable"
39 '
40
41 +test_perf 'test-lib-functions correctly loaded in subshells' '
42 + : >a &&
43 + test_path_is_file a
44 +'
45 +
46 test_done
t/perf/perf-lib.sh
+1 -1
@@ -119,7 +119,7 @@ test_run_perf_ () {
119 test_export_="test_cleanup"
120 export test_cleanup test_export_
121 /usr/bin/time -f "%E %U %S" -o test_time.$i "$SHELL" -c '
122 -. '"$TEST_DIRECTORY"/../test-lib-functions.sh'
122 +. '"$TEST_DIRECTORY"/test-lib-functions.sh'
123 test_export () {
124 [ $# != 0 ] || return 0
125 test_export_="$test_export_\\|$1"