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 926074 Details for
Bug 883203
beaker-wizard: runtest.sh does not obey None in "Run for"
[?]
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]
proposed fix; removes rlAssertRpm if RunFor is 'None'
beaker-wizard-RFE-None.patch (text/plain), 1.33 KB, created by
Martin Žember
on 2014-08-12 13:47:34 UTC
(
hide
)
Description:
proposed fix; removes rlAssertRpm if RunFor is 'None'
Filename:
MIME Type:
Creator:
Martin Žember
Created:
2014-08-12 13:47:34 UTC
Size:
1.33 KB
patch
obsolete
>diff --git a/Client/src/bkr/client/wizard.py b/Client/src/bkr/client/wizard.py >index 61407dc..51afc42 100755 >--- a/Client/src/bkr/client/wizard.py >+++ b/Client/src/bkr/client/wizard.py >@@ -2458,6 +2458,14 @@ def replaceVariables(self, xml, test = None): > skeleton += value > return skeleton > >+ def modifySkeletonText(self, skeletonText, test): >+ """ Modify skeleton text, e.g. remove " rlAssertRpm $PACKAGE" if package is 'None' """ >+ if test == None: >+ return skeletonText >+ if test.runfor.show() == 'None': >+ skeletonText = re.sub('\n\s*rlAssertRpm \$PACKAGE\n', '\n', skeletonText) >+ return skeletonText >+ > def getRuntest(self, test = None): > """ Return runtest.sh skeleton corresponding to user choice """ > # get the template from predefined or user skeletons >@@ -2465,6 +2473,8 @@ def getRuntest(self, test = None): > or findNode(self.options.pref.skeletons, "skeleton", self.data) > # substitute variables, convert to plain text > skeleton = self.replaceVariables(skeleton, test) >+ # modify it if needed >+ skeleton = self.modifySkeletonText(skeleton, test) > # return dedented skeleton without trailing whitespace > skeleton = re.sub("\n\s+$", "\n", skeleton) > return dedentText(skeleton)
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 883203
: 926074