r326 - trunk/tests/memory
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-26 18:44:19 +0000 (Tue, 26 Jan 2010)
New Revision: 326
Modified:
trunk/tests/memory/memory.py
Log:
558578 - memory test traceback: AttributeError: int object has no attribute pipe
Modified: trunk/tests/memory/memory.py
===================================================================
--- trunk/tests/memory/memory.py 2010-01-25 15:41:15 UTC (rev 325)
+++ trunk/tests/memory/memory.py 2010-01-26 18:44:19 UTC (rev 326)
@@ -55,7 +55,11 @@
passed = self.getTestLimits()
if not passed: return 1
+ if not self.runMultipleProcessTest():
+ return FAILED
+ return PASSED
+
# if process memory is limited, run multiple processes
if self.isProcessLimited:
if not self.runMultipleProcessTest():
@@ -177,33 +181,34 @@
def runProcesses(self, number, command):
processes = 0;
passed = True
- pipe = []
+ process = []
if self.mode == Constants.self:
command = "echo 'Self Test Mode - would have run %s'" % command
for i in range(number):
- commandPipe = Command(command).run()
- pipe.append(commandPipe.pipe)
- print "Started: process %u pid %u: %s" % (i, pipe[i].pid, command)
+ processCommand = Command(command)
+ processCommand.start()
+ process.append(processCommand)
+ print "Started: process %u pid %u: %s" % (i, process[i].getPID(), command)
sys.stdout.flush()
waiting = True
while waiting:
waiting = False
for i in range(number):
- if pipe[i]:
+ if process[i]:
found = True
- line = pipe[i].stdout.readline()
+ line = process[i].readline()
if line and len(line) > 1:
- print "process %u pid %u: %s" % (i, pipe[i].pid, line)
+ print "process %u pid %u: %s" % (i, process[i].getPID(), line)
sys.stdout.flush()
- if pipe[i].poll() == -1:
+ if process[i].poll() == -1:
waiting = True
else:
- returnValue = pipe[i].poll()
+ returnValue = process[i].poll()
if returnValue != 0:
- print "Error: process %u pid %u retuned %u" % (i, pipe[i].pid, returnValue)
+ print "Error: process %u pid %u retuned %u" % (i, process[i].getPID(), returnValue)
passed = False
- print "process %u pid %u returned success" % (i, pipe[i].pid)
- pipe[i] = None
+ print "process %u pid %u returned success" % (i, process[i].getPID())
+ process[i] = None
sys.stdout.flush()
return passed
14 years, 3 months
r325 - in tags: . v7-V1-1R1/v7
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-25 15:41:15 +0000 (Mon, 25 Jan 2010)
New Revision: 325
Added:
tags/v7-V1-1R1/
Modified:
tags/v7-V1-1R1/v7/version.py
Log:
tag version
Copied: tags/v7-V1-1R1 (from rev 324, trunk)
Modified: tags/v7-V1-1R1/v7/version.py
===================================================================
--- trunk/v7/version.py 2010-01-22 21:13:35 UTC (rev 324)
+++ tags/v7-V1-1R1/v7/version.py 2010-01-25 15:41:15 UTC (rev 325)
@@ -1,5 +1,5 @@
# v7/version.py is automatically-generated - DO NOT EDIT
-version = '1.0'
-release = '23'
-rhel_version = '6'
+version = '1.1'
+release = '1'
+rhel_version = '5'
14 years, 3 months
r324 - trunk
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-22 21:13:35 +0000 (Fri, 22 Jan 2010)
New Revision: 324
Modified:
trunk/v7.spec.in
Log:
changelog
Modified: trunk/v7.spec.in
===================================================================
--- trunk/v7.spec.in 2010-01-22 21:09:36 UTC (rev 323)
+++ trunk/v7.spec.in 2010-01-22 21:13:35 UTC (rev 324)
@@ -68,6 +68,14 @@
/usr/share/man/man8/v7.8.gz
%changelog
+* Fri Jan 22 2010 Greg Nichols <gnichols(a)redhat.com>
+
+V7 1.1 R1
+
+ 557355 - fv_* is not listed in v7 plan both on AMD RHEL5.4-Server xen / kvm system
+ 557365 - `v7 plan` failed with traceback and cause no plan for `v7 print`
+ 546404 - Avoid running any tests when invalid test name is used
+
* Thu Jan 14 2010 Greg Nichols <gnichols(a)redhat.com>
V7 1.0 R26
14 years, 3 months
r323 - trunk/v7
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-22 21:09:36 +0000 (Fri, 22 Jan 2010)
New Revision: 323
Modified:
trunk/v7/fvtest.py
Log:
fv_* is not listed in v7 plan both on AMD RHEL5.4-Server xen / kvm system
Modified: trunk/v7/fvtest.py
===================================================================
--- trunk/v7/fvtest.py 2010-01-22 21:07:51 UTC (rev 322)
+++ trunk/v7/fvtest.py 2010-01-22 21:09:36 UTC (rev 323)
@@ -71,7 +71,7 @@
cpuflags = Command("fgrep flags /proc/cpuinfo")
self.hypervisor = None
try:
- if cpuflags.getString(regex="(vmx|smx)", singleLine=False):
+ if cpuflags.getString(regex="(vmx|smx|svm)", singleLine=False):
# read the hypervisor capabilities if that file exists
try:
capabilityFile = open('/sys/hypervisor/properties/capabilities')
14 years, 3 months
r322 - trunk/v7
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-22 21:07:51 +0000 (Fri, 22 Jan 2010)
New Revision: 322
Modified:
trunk/v7/hardwaretest.py
Log:
546404 - Avoid running any tests when invalid test name is used
Modified: trunk/v7/hardwaretest.py
===================================================================
--- trunk/v7/hardwaretest.py 2010-01-22 21:07:04 UTC (rev 321)
+++ trunk/v7/hardwaretest.py 2010-01-22 21:07:51 UTC (rev 322)
@@ -529,6 +529,17 @@
def doRun(self):
if not self.doPlan():
return False
+
+ #check tests
+ testNotFound = False
+ for testName in self.options.test:
+ if not self.certification.getTest(testName):
+ print "Error: No such test \"" + testName + "\""
+ testNotFound = True
+ if testNotFound:
+ return False
+ # otherwise
+
tests = self.certification.getFilteredTests(self.options)
14 years, 3 months
r321 - trunk
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-22 21:07:04 +0000 (Fri, 22 Jan 2010)
New Revision: 321
Modified:
trunk/Makefile
Log:
Bump minor version and release
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2010-01-22 21:04:23 UTC (rev 320)
+++ trunk/Makefile 2010-01-22 21:07:04 UTC (rev 321)
@@ -13,8 +13,8 @@
#
# Author: Greg Nichols
-V7_VERSION := 1.0
-V7_RELEASE := 26
+V7_VERSION := 1.1
+V7_RELEASE := 1
V7_VERSION_RELEASE := $(V7_VERSION)-$(V7_RELEASE)
V7_VERSION_PY := v7/version.py
V7_SVN_MODULE := svn+ssh://svn.fedorahosted.org/svn/v7
14 years, 3 months
r320 - trunk/v7
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-22 21:04:23 +0000 (Fri, 22 Jan 2010)
New Revision: 320
Modified:
trunk/v7/hardwaretest.py
Log:
557365 - RHEL4 U8: v7 plan failed with traceback and cause no plan for v7 print
Modified: trunk/v7/hardwaretest.py
===================================================================
--- trunk/v7/hardwaretest.py 2010-01-14 16:26:45 UTC (rev 319)
+++ trunk/v7/hardwaretest.py 2010-01-22 21:04:23 UTC (rev 320)
@@ -851,7 +851,7 @@
line=f.readline()
f.close()
if line:
- pattern = re.compile("^(?P<product>[a-zA-Z\ ]+)release (?P<number>[1-9\.]+) \((?P<name>[a-zA-Z]+)\)")
+ pattern = re.compile("^(?P<product>[a-zA-Z\ ]+)release (?P<number>[1-9\.]+) \((?P<name>[a-zA-Z0-9\ ]+)\)")
match = pattern.match(line)
product = None
if match.group("product"):
14 years, 3 months
r319 - in tags: . v7-V1-0R26/v7
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-14 16:26:45 +0000 (Thu, 14 Jan 2010)
New Revision: 319
Added:
tags/v7-V1-0R26/
Modified:
tags/v7-V1-0R26/v7/version.py
Log:
tag version
Copied: tags/v7-V1-0R26 (from rev 318, trunk)
Modified: tags/v7-V1-0R26/v7/version.py
===================================================================
--- trunk/v7/version.py 2010-01-14 16:24:35 UTC (rev 318)
+++ tags/v7-V1-0R26/v7/version.py 2010-01-14 16:26:45 UTC (rev 319)
@@ -1,5 +1,5 @@
# v7/version.py is automatically-generated - DO NOT EDIT
version = '1.0'
-release = '23'
-rhel_version = '6'
+release = '26'
+rhel_version = '5'
14 years, 4 months
r318 - trunk
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-14 16:24:35 +0000 (Thu, 14 Jan 2010)
New Revision: 318
Modified:
trunk/v7.spec.in
Log:
changelog
Modified: trunk/v7.spec.in
===================================================================
--- trunk/v7.spec.in 2010-01-14 16:22:24 UTC (rev 317)
+++ trunk/v7.spec.in 2010-01-14 16:24:35 UTC (rev 318)
@@ -68,12 +68,11 @@
/usr/share/man/man8/v7.8.gz
%changelog
-* Wed Jan 13 2010 Greg Nichols <gnichols(a)redhat.com>
+* Thu Jan 14 2010 Greg Nichols <gnichols(a)redhat.com>
-V7 1.0 R24
- 555045 - v7 R23 traceback on submit command - invalid device data
+V7 1.0 R26
-* Tue Jan 12 2010 Greg Nichols <gnichols(a)redhat.com>
+ 555045 - v7 R23 traceback on submit command - invalid device data
V7 1.0 R23
14 years, 4 months
r317 - trunk/v7
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-14 16:22:24 +0000 (Thu, 14 Jan 2010)
New Revision: 317
Modified:
trunk/v7/v7kudzu.py
Log:
555045 - v7 R23 traceback on submit command - invalid device data
Modified: trunk/v7/v7kudzu.py
===================================================================
--- trunk/v7/v7kudzu.py 2010-01-14 16:15:50 UTC (rev 316)
+++ trunk/v7/v7kudzu.py 2010-01-14 16:22:24 UTC (rev 317)
@@ -4,7 +4,7 @@
import os
-from v7.device import Device
+from v7.device import KudzuDevice
from v7.deviceDetector import DeviceDetector
from v7.tags import Constants
from v7.certificationtest import DocumentWrapper
@@ -48,7 +48,7 @@
if line:
if line == self.recordSeparator:
if len(properties) > 0:
- self.devices.append(Device(Constants.kudzu, properties))
+ self.devices.append(KudzuDevice(properties))
properties = dict()
else:
line = docWrapper.removeBadCharacters(line)
14 years, 4 months