Bug 695047 - when timezone is changed during phase, getting traceback on phase end
Summary: when timezone is changed during phase, getting traceback on phase end
Keywords:
Status: CLOSED DUPLICATE of bug 693653
Alias: None
Product: Fedora
Classification: Fedora
Component: beakerlib
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Muller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 545868
TreeView+ depends on / blocked
 
Reported: 2011-04-10 05:48 UTC by Jan Hutař
Modified: 2016-09-20 02:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-11 12:27:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2011-04-10 05:48:28 UTC
Description of problem:
When I change timezone to more west one by rewriting /etc/timezone during execution of phase, on the phase end I'm getting traceback.


Version-Release number of selected component (if applicable):
beakerlib-1.3-4.el5
python-2.4.3-43.el5
tzdata-2011d-3.el5


How reproducible:
always


Steps to Reproduce:
1. # date
Sun Apr 10 07:44:31 CEST 2011
2. # rlJournalStart 
3. # rlPhaseStartTest

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

4. # rlRun "/bin/cp -f /usr/share/zoneinfo/UTC /etc/localtime"
:: [   PASS   ] :: Running '/bin/cp -f /usr/share/zoneinfo/UTC /etc/localtime'
5. # rlPhaseEnd


Actual results:
Traceback (most recent call last):
  File "/usr/bin/beakerlib-journalling", line 468, in ?
    createLog(options.testid, options.severity)
  File "/usr/bin/beakerlib-journalling", line 181, in createLog
    printPhaseLog(nod,severity)
  File "/usr/bin/beakerlib-journalling", line 94, in printPhaseLog
    duration = time.mktime(time.strptime(endtime,timeFormat)) - time.mktime(time.strptime(starttime,timeFormat))
  File "/usr/lib/python2.4/_strptime.py", line 293, in strptime
    raise ValueError("time data did not match format:  data=%s  fmt=%s" %
ValueError: time data did not match format:  data=2011-04-10 07:44:46 CEST  fmt=%Y-%m-%d %H:%M:%S %Z


Expected results:
Should show correct output including correct duration

Comment 1 Petr Muller 2011-04-11 12:27:49 UTC

*** This bug has been marked as a duplicate of bug 693653 ***


Note You need to log in before you can comment on or make changes to this bug.