summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-01-06 23:33:44 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-01-06 23:33:44 -0800
commitd3aff11c3eadf3c496859180d453ce07cde72b44 (patch)
tree8230808537c9be1635b758fdeb5bd3c6e3fdaf3c /t
parentMerge branch 'fc/t6030-bisect-reset-removes-auxiliary-files' (diff)
parentt/perf: avoid unnecessary test_export() recursion (diff)
downloadtgif-d3aff11c3eadf3c496859180d453ce07cde72b44.tar.xz
Merge branch 'es/perf-export-fix'
Tweak unneeded recursion from a test framework helper function. * es/perf-export-fix: t/perf: avoid unnecessary test_export() recursion
Diffstat (limited to 't')
-rw-r--r--t/perf/perf-lib.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/t/perf/perf-lib.sh b/t/perf/perf-lib.sh
index 22d727cef8..e385c6896f 100644
--- a/t/perf/perf-lib.sh
+++ b/t/perf/perf-lib.sh
@@ -147,10 +147,7 @@ test_run_perf_ () {
"$GTIME" -f "%E %U %S" -o test_time.$i "$SHELL" -c '
. '"$TEST_DIRECTORY"/test-lib-functions.sh'
test_export () {
- [ $# != 0 ] || return 0
- test_export_="$test_export_ $1"
- shift
- test_export "$@"
+ test_export_="$test_export_ $*"
}
'"$1"'
ret=$?