Test script for this bug. It runs a copy of on_ac_power against fake sysfs trees (macsmc and ThinkPad laptops, plugged and unplugged, and the LP: #1980991 NUC with and without a mouse battery) and compares the exit codes with what they should be:
sh repro.sh /usr/sbin/on_ac_power With powermgmt-base 1.38ubuntu2, only the macsmc case fails: macsmc-unplugged expected 1 got 0 FAIL With the fix, all cases pass. ** Attachment added: "repro.sh" https://bugs.launchpad.net/ubuntu/+source/powermgmt-base/+bug/2172719/+attachment/6014169/+files/repro.sh -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2172719 Title: on_ac_power says "on AC power" on battery if the battery isn't named BAT<n> To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/powermgmt-base/+bug/2172719/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
