Author: gnichols
Date: 2011-03-31 12:39:20 +0000 (Thu, 31 Mar 2011)
New Revision: 855
Modified:
trunk/v7/hardwaretest.py
Log:
618358 - v7 server - fencing test requires fence-agents rpm\n 593982 - FEAT: test suite to
remind users before the results.xml file becomes too large
Modified: trunk/v7/hardwaretest.py
===================================================================
--- trunk/v7/hardwaretest.py 2011-03-31 12:33:36 UTC (rev 854)
+++ trunk/v7/hardwaretest.py 2011-03-31 12:39:20 UTC (rev 855)
@@ -455,7 +455,7 @@
# check server=specific rpms
if subcommand == "start":
# server web CGI uses XSLT via python-lxml
- if not self.installRequiredRPMs({"python-lxml":
"python-lxml"}):
+ if not self.installRequiredRPMs({"python-lxml":
"python-lxml", "fence-agents": "fence-agents"}):
result = 1
for test in tests:
rv = self.runServer(test, subcommand)
@@ -847,6 +847,14 @@
def __verify(self, testDocuments):
+ # check the results file size
+ result = True
+ if self.certification.getLoadedFileSize() >
self.environment.getResultsWarningSize():
+ result = False
+ print "Warning: the test results may be too large to submit to the
hardware catalog."
+ print "File: %s is %u MB" %
(self.certification.getLoadedFilePath(),
int(self.certification.getLoadedFileSize()/1048576))
+
+
# just call verify on each test directly
failures = 0