Skip to content

Commit bd6774c

Browse files
authored
Merge pull request #8 from redhat-performance/fix_run_dir
Fix run dir and test tools
2 parents 738fdc0 + ced536f commit bd6774c

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

fio/fio_run

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ arguments="$@"
2424

2525
source ~/.bashrc
2626

27-
chars=`echo $0 | awk -v RS='/' 'END{print NR-1}'`
28-
run_dir=`echo $0 | cut -d'/' -f 1-${chars}`
27+
if [[ $0 == "./"* ]]; then
28+
run_dir=`pwd`
29+
else
30+
chars=`echo $0 | awk -v RS='/' 'END{print NR-1}'`
31+
run_dir=`echo $0 | cut -d'/' -f 1-${chars}`
32+
fi
2933

3034
os_info=`uname -a`
3135
ubuntu=0
@@ -57,7 +61,7 @@ os_vendor=`uname -a | cut -d'.' -f8`
5761
file_count=0
5862
file_size=10
5963
fs_type="xfs"
60-
tools_git=https://github.com/dvalinrh/test_tools
64+
tools_git=https://github.com/redhat-performance/test_tools-wrappers
6165
file_list=""
6266
file_size_opt=""
6367
lvm_disk=0
@@ -138,7 +142,7 @@ done
138142
# clone the repo.
139143
#
140144
if [ ! -d "test_tools" ]; then
141-
git clone $tools_git
145+
git clone $tools_git test_tools
142146
if [ $? -ne 0 ]; then
143147
echo pulling git $tools_git failed.
144148
exit 1

0 commit comments

Comments
 (0)