aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-01-06 23:33:44 -0800
committerJunio C Hamano <gitster@pobox.com>2021-01-06 23:33:44 -0800
commitd3aff11c3eadf3c496859180d453ce07cde72b44 (patch)
tree8230808537c9be1635b758fdeb5bd3c6e3fdaf3c
parentcf4b0714f7d3624cdf5a2a27df865844b7c57cd5 (diff)
parent5bc12c11ccdd3126cf04cf08cf59bf3c204f7f2a (diff)
downloadgit-d3aff11c3eadf3c496859180d453ce07cde72b44.tar.gz
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
-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=$?