Author: gnichols
Date: 2012-02-03 14:10:17 +0000 (Fri, 03 Feb 2012)
New Revision: 1171
Modified:
trunk/v7/certificationtest.py
Log:
782229 - FEAT: v7 certify should support component mode
Modified: trunk/v7/certificationtest.py
===================================================================
--- trunk/v7/certificationtest.py 2012-02-03 14:09:14 UTC (rev 1170)
+++ trunk/v7/certificationtest.py 2012-02-03 14:10:17 UTC (rev 1171)
@@ -209,6 +209,16 @@
tests = filteredTests
+ tests = self.getDeviceTests(options, tests)
+
+ if options.tag:
+ tests = self.getTaggedTests(tests, options.tag)
+
+ return tests
+
+ def getDeviceTests(self, options, tests):
+ filteredTests = tests
+
if options.udi:
filteredTests = list()
for test in tests:
@@ -223,10 +233,7 @@
if options.device == test.getLogicalDeviceName():
filteredTests.append(test)
tests = filteredTests
-
- if options.tag:
- tests = self.getTaggedTests(tests, options.tag)
-
+
return tests
def getTaggedTests(self, tests, tags):
Show replies by date