Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 851186 Details for
Bug 1054347
hwcert stuck in loop checking catalog for outstanding tests
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to fix logic when no certification ID is set
0001-1054347-hwcert-stuck-in-loop-checking-catalog-for-ou.patch (text/plain), 2.49 KB, created by
Greg Nichols
on 2014-01-16 17:25:12 UTC
(
hide
)
Description:
patch to fix logic when no certification ID is set
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2014-01-16 17:25:12 UTC
Size:
2.49 KB
patch
obsolete
>From f19a8b7b725a52ecbab9ead018c5b73a523fdc66 Mon Sep 17 00:00:00 2001 >From: Greg Nichols <gnichols@redhat.com> >Date: Thu, 16 Jan 2014 12:24:18 -0500 >Subject: [PATCH] 1054347 - hwcert stuck in loop checking catalog for > outstanding tests > >--- > hwcert/hardwarecertification.py | 2 +- > hwcert/resultsengine.py | 27 +++++++++++++++------------ > 2 files changed, 16 insertions(+), 13 deletions(-) > >diff --git a/hwcert/hardwarecertification.py b/hwcert/hardwarecertification.py >index 2a18251..a3acf1f 100644 >--- a/hwcert/hardwarecertification.py >+++ b/hwcert/hardwarecertification.py >@@ -126,7 +126,7 @@ class HardwareCertification(HardwareTestHarness): > > if len(tests) == 0: > print "Testing appears to be complete." >- return True >+ return False > > tests = self.addMandatoryTests(tests) > if not tests: >diff --git a/hwcert/resultsengine.py b/hwcert/resultsengine.py >index b364a89..f0344dd 100644 >--- a/hwcert/resultsengine.py >+++ b/hwcert/resultsengine.py >@@ -59,19 +59,22 @@ class ResultsEngine: > if not test.isDeleted(): > remainingTests.append(test) > >- openTests = catalog.getOpenTests(self.certification) >+ # if linked to an open certification, check the catalog for open tests >+ if self.certification.getCertificationID(): >+ print "Checking catalog for open tests" >+ openTests = catalog.getOpenTests(self.certification) > >- # filter remaining tests by open tests >- if openTests: >- print "The following tests are still open: %s" % (", ".join(openTests)).lower() >- tests = remainingTests >- remainingTests = list() >- for test in tests: >- if test.getName().upper() in openTests: >- remainingTests.append(test) >- else: >- print "There are no open tests remaining in the certification" >- return list() >+ # filter remaining tests by open tests >+ if openTests: >+ print "The following tests are still open: %s" % (", ".join(openTests)).lower() >+ tests = remainingTests >+ remainingTests = list() >+ for test in tests: >+ if test.getName().upper() in openTests: >+ remainingTests.append(test) >+ else: >+ print "There are no open tests remaining in the certification" >+ return list() > > return remainingTests > >-- >1.8.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1054347
: 851186