Commit 19c7e1af authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Fix #3112 (bash {{{=~}}} operator doesn't like quotes). close[t:3112]

git-svn-id: file:///svn/toku/tokudb@26365 c7de825b-a66e-492c-adef-691d508d4ae1
parent 7083a45a
#!/usr/bin/env bash #!/usr/bin/env bash
# $Id$
# run a sequence of hotindexer undo tests. # run a sequence of hotindexer undo tests.
tests="" tests=""
...@@ -7,7 +7,7 @@ verbose=0 ...@@ -7,7 +7,7 @@ verbose=0
valgrind="" valgrind=""
for arg in $* ; do for arg in $* ; do
if [[ $arg =~ "--(.*)=(.*)" ]] ; then if [[ $arg =~ --(.*)=(.*) ]] ; then
eval ${BASH_REMATCH[1]}=${BASH_REMATCH[2]} eval ${BASH_REMATCH[1]}=${BASH_REMATCH[2]}
else else
tests="$tests $arg" tests="$tests $arg"
...@@ -19,7 +19,7 @@ for t in $tests ; do ...@@ -19,7 +19,7 @@ for t in $tests ; do
testfile=`basename $t` testfile=`basename $t`
testname="" testname=""
resultfile="" resultfile=""
if [[ $testfile =~ "(.*)\.test$" ]] ; then if [[ $testfile =~ (.*)\.test$ ]] ; then
testname=${BASH_REMATCH[1]} testname=${BASH_REMATCH[1]}
resultfile=$testname.result resultfile=$testname.result
else else
...@@ -43,4 +43,4 @@ for t in $tests ; do ...@@ -43,4 +43,4 @@ for t in $tests ; do
if [ $exitcode != 0 ] ; then break; fi if [ $exitcode != 0 ] ; then break; fi
done done
exit $exitcode exit $exitcode
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment