Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 913238

Summary: battery test fails
Product: [Retired] Red Hat Hardware Certification Program Reporter: Brian Brock <bbrock>
Component: Test Suite (tests)Assignee: Greg Nichols <gnichols>
Status: CLOSED NOTABUG QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: czhang, rlandry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-11 10:16:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
output log from battery test
none
v7 results for battery test none

Description Brian Brock 2013-02-20 17:16:30 UTC
Created attachment 700141 [details]
output log from battery  test

battery test fails on a laptop with a good battery.

v7-1.7.0-9.el7

no workarounds yet, reliably reproduced

Steps to Reproduce:
1. v7 plan -t battery
2. v7 run -t battery
3. uplug, click 'y', and replug-in AC as prompted
  
test fails.  expected to pass

logs attached.

Comment 1 Brian Brock 2013-02-20 17:19:34 UTC
Created attachment 700142 [details]
v7 results for battery test

Comment 2 Greg Nichols 2013-02-20 18:11:11 UTC
Please attach results,xml from the system.

Comment 3 Greg Nichols 2013-02-20 18:12:34 UTC
Ah - nevermind - you've already got it.

Comment 4 Greg Nichols 2013-02-20 18:17:18 UTC
Could you attach the output of "udevadm info --export-db" with the power supply plugged in?

Comment 5 Caspar Zhang 2013-02-21 02:36:25 UTC
this is a known issue with an old battery, have you got a chance to test with a brand-new battery?

Comment 6 Caspar Zhang 2013-02-21 06:35:27 UTC
I'm lucky enough to get a new laptop to do battery test, and the test passes as expected. No "UNKNOWN" status occured in the test:

Test Parameters: DEBUG=low RUNMODE=normal UDI=/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:09/PNP0C09:00/PNP0C0A:00/power_supply/BAT0 DEVICE= OUTPUTFILE=/var/log/v7/runs/4/battery/output.log 
-------------------------------
AC Adapter is connected
Battery:
    charged to 73% - 66180 mWh
    current charging status is charging
-------------------------------
Please disconnect AC Power - continue?  (y|n) y
response: y
waiting to verify battery discharging more than 10 mWh
verified battery is discharging
-------------------------------
AC Adapter is not connected
Battery:
    charged to 73% - 66140 mWh
    current charging status is discharging
-------------------------------
Please connect AC Power - continue?  (y|n) y\
response: y\
Please answer y or n.
Please connect AC Power - continue?  (y|n) y
response: y
waiting to verify battery charging more than 10 mWh
verified battery is charging
-------------------------------
AC Adapter is connected
Battery:
    charged to 73% - 66150 mWh
    current charging status is charging
-------------------------------
...Done: return value = 0.

So I'm assuming this is not a bug, at least NOTABUG at v7 side.

Comment 7 Brian Brock 2013-02-25 16:25:44 UTC
Caspar says this is fixed.