Skip to content

Commit d3aff11

Browse files
committed
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
2 parents cf4b071 + 5bc12c1 commit d3aff11

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

t/perf/perf-lib.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,7 @@ test_run_perf_ () {
147147
"$GTIME" -f "%E %U %S" -o test_time.$i "$SHELL" -c '
148148
. '"$TEST_DIRECTORY"/test-lib-functions.sh'
149149
test_export () {
150-
[ $# != 0 ] || return 0
151-
test_export_="$test_export_ $1"
152-
shift
153-
test_export "$@"
150+
test_export_="$test_export_ $*"
154151
}
155152
'"$1"'
156153
ret=$?

0 commit comments

Comments
 (0)