diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-01-06 23:33:44 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-06 23:33:44 -0800 |
commit | d3aff11c3eadf3c496859180d453ce07cde72b44 (patch) | |
tree | 8230808537c9be1635b758fdeb5bd3c6e3fdaf3c /t | |
parent | Merge branch 'fc/t6030-bisect-reset-removes-auxiliary-files' (diff) | |
parent | t/perf: avoid unnecessary test_export() recursion (diff) | |
download | tgif-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.sh | 5 |
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=$? |