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 867325 Details for
Bug 1066339
[ PATCH ] - Enable python-coverage in stage2
[?]
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.
Updated patch
anaconda-coverage.patch (text/plain), 1.38 KB, created by
Alexander Todorov
on 2014-02-25 09:49:45 UTC
(
hide
)
Description:
Updated patch
Filename:
MIME Type:
Creator:
Alexander Todorov
Created:
2014-02-25 09:49:45 UTC
Size:
1.38 KB
patch
obsolete
>diff --git a/anaconda b/anaconda >index 994497f..5fe1b19 100755 >--- a/anaconda >+++ b/anaconda >@@ -31,11 +31,30 @@ > # This toplevel file is a little messy at the moment... (2001-06-22) > # ...still messy (2013-07-12) > >+coverage = None >+ >+proc_cmdline = open("/proc/cmdline", "r").read() >+proc_cmdline = proc_cmdline.split() >+if ("debug=1" in proc_cmdline) or ("debug" in proc_cmdline): >+ import coverage >+ cov = coverage.coverage(data_file="/mnt/sysimage/root/anaconda.coverage", >+ branch=True, >+ source=["/usr/sbin/anaconda", "pyanaconda"] >+ ) >+ cov.start() >+ >+ > import atexit, sys, os, time, subprocess > # keep up with process ID of the window manager if we start it > wm_pid = None > > def exitHandler(rebootData, storage, exitCode=None): >+ # stop and save coverage here b/c later the file system may be unavailable >+ if coverage is not None: >+ cov.stop() >+ if os.path.isdir('/mnt/sysimage/root'): >+ cov.save() >+ > if flags.usevnc: > vnc.shutdownServer() > >diff --git a/anaconda.spec.in b/anaconda.spec.in >index a13588d..3ce9e8d 100755 >--- a/anaconda.spec.in >+++ b/anaconda.spec.in >@@ -142,6 +142,8 @@ Requires: hfsplus-tools > %endif > %endif > >+Requires: python-coverage >+ > # required because of the rescue mode and VNC question > Requires: anaconda-tui = %{version}-%{release} >
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 Raw
Actions:
View
Attachments on
bug 1066339
: 867325