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 696916 Details for
Bug 910849
kdump does not parse date separators in vmcore image directories
[?]
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]
kdump test patch to accept either - or . as a date separator.
kdump.patch (text/plain), 1.37 KB, created by
Greg Nichols
on 2013-02-13 17:03:04 UTC
(
hide
)
Description:
kdump test patch to accept either - or . as a date separator.
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2013-02-13 17:03:04 UTC
Size:
1.37 KB
patch
obsolete
>diff --git a/tests/kdump/kdump.py b/tests/kdump/kdump.py >index a089a9c..bcdab5f 100644 >--- a/tests/kdump/kdump.py >+++ b/tests/kdump/kdump.py >@@ -360,14 +360,15 @@ class KDumpTest(Test): > > # find the vmcore image file matching the timestamp > # vmcore directories are like this: 127.0.0.1-2011-03-10-13:18:27 >- vmcoreDirectoryPattern = re.compile("(?P<ipaddr>[0-9]+\.[0-9]+\.[0-9]+)-(?P<date>[0-9]+-[0-9]+-[0-9]+)-(?P<time>[0-9]+:[0-9]+:[0-9]+)") >+ # but wait, it's now 127.0.0.1-2013.02.13-11:10:57 (not the date fields use . as a separator! >+ vmcoreDirectoryPattern = re.compile("(?P<ipaddr>[0-9]+\.[0-9]+\.[0-9]+)-(?P<date>[0-9]+(-|\.)[0-9]+(-|\.)[0-9]+)-(?P<time>[0-9]+:[0-9]+:[0-9]+)") > minimumDuration = None > directoryMatch = None > for (root,dirs,files) in os.walk(imageDirectory): > for dir in dirs: > match = vmcoreDirectoryPattern.search(dir) > if match: >- timestamp = "%s %s" % (match.group("date"), match.group("time")) >+ timestamp = "%s %s" % (match.group("date").replace(".", "-"), match.group("time")) > duration = self.continuation.getDuration(timestamp) > print "%s took %s" % (dir, duration) > if not directoryMatch or (duration.seconds < minimumDuration):
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 910849
: 696916