Author: gnichols
Date: 2012-05-29 17:12:50 +0000 (Tue, 29 May 2012)
New Revision: 1336
Modified:
trunk/v7/fvtest.py
Log:
824851 - fv_storage test traceback if --server not set
Modified: trunk/v7/fvtest.py
===================================================================
--- trunk/v7/fvtest.py 2012-05-29 17:10:16 UTC (rev 1335)
+++ trunk/v7/fvtest.py 2012-05-29 17:12:50 UTC (rev 1336)
@@ -352,7 +352,10 @@
guestScript.write("rpm -ivh /mnt/v7-*.noarch.rpm 2>&1 >
/var/log/v7fv.log\n")
# run the tests
guestScript.write("v7 plan --mode auto\n")
- commandToRun = self.v7CommandInGuest + " --mode auto --test " +
self.testToRun + ' --server ' + self.getTestServer()
+ commandToRun = self.v7CommandInGuest + " --mode auto --test " +
self.testToRun
+ if self.getTestServer():
+ commandToRun += ' --server ' + self.getTestServer()
+
guestScript.write(commandToRun + "\n")
# copy the results to
v7data.imghp-dl580g5-01.rhts.bos.redhat.com
guestScript.write("mv /var/v7/results.xml /mnt/.\n")