From 505f27ea84f88cb207aedb0c7c96e6f0bc298ee9 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Sat, 7 Jul 2012 21:50:00 +0530 Subject: [PATCH] Launch the smoke suite from the basedir - ${base.dir}/test --- build/build-tests.xml | 2 +- test/setup.sh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build/build-tests.xml b/build/build-tests.xml index 4e31fda8b48..50133925d24 100755 --- a/build/build-tests.xml +++ b/build/build-tests.xml @@ -109,7 +109,7 @@ - + diff --git a/test/setup.sh b/test/setup.sh index 623fc7631c5..4919a374da8 100755 --- a/test/setup.sh +++ b/test/setup.sh @@ -19,7 +19,7 @@ TESTDIR="/root/cloudstack-oss/test/integration/smoke-simulator/" CONFIG="/root/cloudstack-oss/test/integration/smoke-simulator/simulator-smoke.cfg" DB_SVR="localhost" -while getopts 't:d:m:c:' OPTION +while getopts 't:d:m:c:b:' OPTION do case $OPTION in d) dflag=1 @@ -34,6 +34,9 @@ do c) cflag=1 CONFIG="$OPTARG" ;; + b) bflag=1 + BASEDIR="$OPTARG" + ;; ?) usage failed 2 ;; @@ -64,7 +67,7 @@ then sleep 60 python -m marvin.deployAndRun -c $CONFIG -t /tmp/t.log -r /tmp/r.log -f $TESTDIR/testSetupSuccess.py -l cat /tmp/r.log - python -m marvin.deployAndRun -c $CONFIG -t /tmp/t.log -r /tmp/r.log -d $TESTDIR -l + python -m marvin.deployAndRun -c $CONFIG -t /tmp/t.log -r /tmp/r.log -d $TESTDIR -l -n echo "Done" else echo "Python version 2.7 not detected on system. Aborting"