Skip to content

Commit 5946795

Browse files
derrickstoleevdye
authored andcommitted
t/perf/run: fix bin-wrappers computation
The GIT_TEST_INSTALLED was moved from perf-lib.sh to run in df0f502 (perf-lib.sh: remove GIT_TEST_INSTALLED from perf-lib.sh, 2019-05-07) and that included a change to how it inspected the existence of a bin-wrappers directory. However, that included a typo that made the match of bin-wrappers never work. Specifically, the assignment was mydir_abs_wrappers="$mydir_abs_wrappers/bin-wrappers" which uses the same variable before it is initialized. By changing it to mydir_abs_wrappers="$mydir_abs/bin-wrappers" We can correctly use the bin-wrappers directory. This is critical to successfully computing performance of commands that execute subcommands. The bin-wrappers ensure that the --exec-path is set correctly. Signed-off-by: Derrick Stolee <[email protected]>
1 parent 5f420f6 commit 5946795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/perf/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ set_git_test_installed () {
7474
mydir=$1
7575

7676
mydir_abs=$(cd $mydir && pwd)
77-
mydir_abs_wrappers="$mydir_abs_wrappers/bin-wrappers"
77+
mydir_abs_wrappers="$mydir_abs/bin-wrappers"
7878
if test -d "$mydir_abs_wrappers"
7979
then
8080
GIT_TEST_INSTALLED=$mydir_abs_wrappers

0 commit comments

Comments
 (0)