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 878594 Details for
Bug 1080571
results can not be saved if the first run contains INCOMPLETE 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 fixing calculation of first run time to ignore incomplete tests
0002-1080571-results-can-not-be-saved-if-the-first-run-co.patch (text/plain), 1.52 KB, created by
Greg Nichols
on 2014-03-25 17:24:12 UTC
(
hide
)
Description:
patch fixing calculation of first run time to ignore incomplete tests
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2014-03-25 17:24:12 UTC
Size:
1.52 KB
patch
obsolete
>From 0df8b2d1efcc4d83357a2866767b953fb1a92935 Mon Sep 17 00:00:00 2001 >From: Greg Nichols <gnichols@redhat.com> >Date: Tue, 25 Mar 2014 13:23:29 -0400 >Subject: [PATCH 2/2] 1080571 - results can not be saved if the first run > contains INCOMPLETE tests > >--- > hwcert/certificationtest.py | 17 ++++++++++------- > 1 file changed, 10 insertions(+), 7 deletions(-) > >diff --git a/hwcert/certificationtest.py b/hwcert/certificationtest.py >index e7eba10..2c40d12 100644 >--- a/hwcert/certificationtest.py >+++ b/hwcert/certificationtest.py >@@ -221,15 +221,18 @@ class ResultsDocument(CertificationDocument): > > def setPlanTime(self, planTime): > self.document.documentElement.setAttribute(Attributes.plan_time, self.timeToString(planTime )) >- >+ > def getRunTime(self): >- for test in self.getTests(): >- if test.wasRun(runNumber=1): >- run = test.getRun(number=1) >- if run: >- return run.getRunTime() >+ runNumber= 1 >+ while runNumber <= self.getNumberOfTestRuns(): >+ for test in self.getTests(): >+ if test.wasRun(runNumber): >+ run = test.getRun(runNumber) >+ if run and run.getRunTime(): >+ return run.getRunTime() >+ runNumber = runNumber + 1 > return None >- >+ > def addTestRun(self): > numberOfRuns = self.getNumberOfTestRuns() + 1 > self.document.documentElement.setAttribute(Attributes.number_of_runs, "%u" % numberOfRuns) >-- >1.8.5.3 >
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 1080571
: 878594