summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2015-12-03 14:46:39 -0500
committerSusan LoVerso <sue@wiredtiger.com>2015-12-03 14:46:39 -0500
commit7b1d722bd7c6a15bcc64f4ba48499fb77eff46dc (patch)
tree77a17061f1160970324baf08fbe9219761df2ca9
parent9b46f3f8e4fc3bb37824fcdb1de963dc16a43ebe (diff)
downloadmongo-7b1d722bd7c6a15bcc64f4ba48499fb77eff46dc.tar.gz
WT-2257 Account for removal of quotes for arg parsing.
-rwxr-xr-xbench/wtperf/runners/wtperf_run.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/bench/wtperf/runners/wtperf_run.sh b/bench/wtperf/runners/wtperf_run.sh
index f46fb217e22..7a1ad44f39c 100755
--- a/bench/wtperf/runners/wtperf_run.sh
+++ b/bench/wtperf/runners/wtperf_run.sh
@@ -18,15 +18,21 @@ if test "$#" -lt "2"; then
fi
wttest=$1
runmax=$2
+# Jenkins removes the quotes from the passed in arg so we may
+# have 3 or 4 args.
wtarg=""
-if test "$#" -eq "3"; then
+wtarg2=""
+if test "$#" -gt "2"; then
wtarg=$3
+ if test "$#" -eq "4"; then
+ wtarg2=$4
+ fi
fi
home=./WT_TEST
outfile=./wtperf.out
rm -f $outfile
-echo "Parsed $# args: test: $wttest runmax: $runmax arg: $wtarg" >> $outfile
+echo "Parsed $# args: test: $wttest runmax: $runmax args: $wtarg $wtarg2" >> $outfile
# Each of these has an entry for each op in ops below.
avg=(0 0 0 0)
@@ -82,7 +88,7 @@ run=1
while test "$run" -le "$runmax"; do
rm -rf $home
mkdir $home
- LD_PRELOAD=/usr/lib64/libjemalloc.so.1 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ./wtperf -O $wttest $wtarg
+ LD_PRELOAD=/usr/lib64/libjemalloc.so.1 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ./wtperf -O $wttest $wtarg $wtarg2
if test "$?" -ne "0"; then
exit 1
fi