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 154127 Details for
Bug 239024
Dogtail support in Anaconda
[?]
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]
/usr/bin/anaconda process and launch dogtail testcase if present
anaconda.process_and_launch_dogtail_script.diff (text/plain), 2.32 KB, created by
Alexander Todorov
on 2007-05-04 14:18:37 UTC
(
hide
)
Description:
/usr/bin/anaconda process and launch dogtail testcase if present
Filename:
MIME Type:
Creator:
Alexander Todorov
Created:
2007-05-04 14:18:37 UTC
Size:
2.32 KB
patch
obsolete
>--- anaconda.orig 2007-04-18 17:04:00.000000000 +0200 >+++ anaconda 2007-04-30 16:45:22.000000000 +0200 >@@ -243,6 +243,7 @@ > op.add_option("--module", action="append", default=[]) > op.add_option("--nomount", dest="rescue_nomount", action="store_true", default=False) > op.add_option("--updates", dest="updateSrc", action="store", type="string") >+ op.add_option("--dogtail", dest="dogtail", action="store", type="string") > > return op.parse_args() > >@@ -481,6 +482,7 @@ > def __init__(self): > self.intf = None > self.dir = None >+ self.dogtail = None > self.id = None > self.method = None > self.methodstr = None >@@ -925,6 +927,44 @@ > anaconda.id.setDisplayMode(opts.display_mode) > instClass.setInstallData(anaconda) > >+ # we have parsed the kickstart data in the function above >+ # search for dogtail script in this priority: kickstart->anaconda options >+ if opts.ksfile and instClass.ksdata and instClass.ksdata.dogtail: >+ anaconda.dogtail = instClass.ksdata.dogtail >+ else: >+ if opts.dogtail: >+ anaconda.dogtail = opts.dogtail >+ >+ if anaconda.dogtail: >+ try: >+ anaconda.id.setDogtail(anaconda.dogtail) >+ import urlgrabber >+ try: >+ fr = urlgrabber.urlopen(anaconda.dogtail) >+ except urlgrabber.grabber.URLGrabError, e: >+ log.error("Could not retrieve %s error was\n%s" % (anaconda.dogtail, e)) >+ fr = None >+ >+ if fr: >+ from tempfile import mkstemp >+ (fw, testcase) = mkstemp(prefix='testcase.py.', dir='/tmp/ramfs') >+ os.write(fw, fr.read()) >+ fr.close() >+ os.close(fw) >+ >+ # download completed now run the test >+ if not os.fork(): >+ # we are in the child >+ os.chmod(testcase, 0755) >+ os.execv(testcase, [testcase]) >+ sys.exit(1) >+ else: >+ # we are in the parent, sleep to give time for the testcase to initialize >+ # todo: is this needed, how to avoid race conditions >+ time.sleep(1) >+ except Exception, e: >+ log.error("Exception %s while running Dogtail testcase" % e) >+ > # We need to copy the VNC-related kickstart stuff into the new ksdata > if opts.ksfile is not None: > instClass.ksdata.vnc = vncksdata
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 239024
:
154122
|
154124
|
154125
|
154126
| 154127 |
154128