summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandon Van Ness <sandon@inktank.com>2013-10-08 11:58:57 -0700
committerSandon Van Ness <sandon@inktank.com>2013-10-08 12:05:02 -0700
commit8e493ef23b1a70e19aaee63f656706d2aa004068 (patch)
tree362409728d65ed45b76cfca6b93c82790b34534f
parent1575895bdc525b584e094e08dfdafb4a11bab5f9 (diff)
downloadceph-8e493ef23b1a70e19aaee63f656706d2aa004068.tar.gz
Go back to $PWD in fsstress.sh if compiling from source.
Although fsstress was being called with a static path the directory it was writing to was in the current directory so doing a cd to the source directory that is made in /tmp and then removing it later caused it to be unable to write the files in a non-existent dir. This change gets the current path first and cd's back into it after it is done compiling fsstress. Issue #6479. Signed-off-by: Sandon Van Ness <sandon@inktank.com> Reviewed-by: Alfredo Deza <alfredo.deza@inktank.com>
-rwxr-xr-xqa/workunits/suites/fsstress.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/qa/workunits/suites/fsstress.sh b/qa/workunits/suites/fsstress.sh
index 7f945172687..394e5fad991 100755
--- a/qa/workunits/suites/fsstress.sh
+++ b/qa/workunits/suites/fsstress.sh
@@ -2,6 +2,7 @@
if [ ! -f /usr/lib/ltp/testcases/bin/fsstress ]
then
+ path=`pwd`
mkdir -p /tmp/fsstress
cd /tmp/fsstress
wget -q -O /tmp/fsstress/ltp-full.tgz http://ceph.com/qa/ltp-full-20091231.tgz
@@ -13,6 +14,7 @@ then
sudo cp -avf /tmp/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress/fsstress /usr/lib/ltp/testcases/bin/fsstress
sudo chmod 755 /usr/lib/ltp/testcases/bin/fsstress
rm -Rf /tmp/fsstress
+ cd $path
fi
command="/usr/lib/ltp/testcases/bin/fsstress -d fsstress-`hostname`$$ -l 1 -n 1000 -p 10 -v"