Re: [ PATCH ] - Anaconda and python-coverage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



На 21.02.2014 17:16, David Shea написа:
On 02/14/2014 07:21 AM, Alexander Todorov wrote:
+coverage = None
+
+proc_cmdline = open("/proc/cmdline", "r").read()
+if proc_cmdline.find("debug=1") > -1:
+    import coverage
+    cov = coverage.coverage(data_file="/mnt/sysimage/root/anaconda.coverage",
+                            branch=True,
+                            source=["/usr/sbin/anaconda", "pyanaconda"]
+                            )
+    cov.start()
+
+

debug=1 on the kernel command line gets pulled into the anaconda cmdline
arguments. Would you be ok with starting this after the parseOptions call, based
on opts.debug = True, or does it need to start at the very beginning of the file?


When coverage starts earlier it collects as much data as possible. I don't know how much we could be missing if this is started later.


--
Alex


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list





[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux