File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ install_tools()
13
13
#
14
14
# Clone the repo that contains the common code and tools
15
15
#
16
- tools_git=https://github.com/dvalinrh /test_tools
16
+ tools_git=https://github.com/redhat-performance /test_tools-wrappers
17
17
18
18
found=0
19
19
for arg in " $@ " ; do
@@ -39,7 +39,7 @@ install_tools()
39
39
# clone the repo.
40
40
#
41
41
if [ ! -d " test_tools" ]; then
42
- git clone $tools_git
42
+ git clone $tools_git test_tools
43
43
if [ $? -ne 0 ]; then
44
44
echo pulling git $tools_git failed.
45
45
exit
@@ -128,9 +128,20 @@ install_tools $0
128
128
129
129
test_name_run=" pyperf"
130
130
arguments=" $@ "
131
- chars=` echo $0 | awk -v RS=' /' ' END{print NR-1}' `
132
- run_dir=` echo $0 | cut -d' /' -f 1-${chars} `
133
131
132
+ if [[ $0 == " ./" * ]]; then
133
+ chars=` echo $0 | awk -v RS=' /' ' END{print NR-1}' `
134
+ if [[ $chars == 1 ]]; then
135
+ run_dir=` pwd`
136
+ else
137
+ run_dir=` echo $0 | cut -d' /' -f 1-${chars} | cut -d' .' -f2-`
138
+ curdir=` pwd`
139
+ run_dir=" ${curdir}${run_dir} "
140
+ fi
141
+ else
142
+ chars=` echo $0 | awk -v RS=' /' ' END{print NR-1}' `
143
+ run_dir=` echo $0 | cut -d' /' -f 1-${chars} `
144
+ fi
134
145
135
146
source test_tools/general_setup " $@ "
136
147
You can’t perform that action at this time.
0 commit comments