mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
upower: fix on i686 by removing one test check
This commit is contained in:
parent
f4eff08947
commit
6667ea80ca
@ -40,6 +40,11 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-+C/4dDg6WTLpBgkpNyxjthSdqYdaTLC8vG6jG1LNJ7w=";
|
||||
};
|
||||
|
||||
# Remove when this is fixed upstream:
|
||||
# https://gitlab.freedesktop.org/upower/upower/-/issues/214
|
||||
patches = lib.optional (stdenv.hostPlatform.system == "i686-linux")
|
||||
./i686-test-remove-battery-check.patch;
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
depsBuildBuild = [
|
||||
|
@ -0,0 +1,12 @@
|
||||
diff -u "a/src/linux/integration-test.py" "b/src/linux/integration-test.py"
|
||||
--- a/src/linux/integration-test.py
|
||||
+++ b/src/linux/integration-test.py
|
||||
@@ -870,5 +870,4 @@
|
||||
self.assertEqual(self.get_dbus_dev_property(bat0_up, 'EnergyFull'), 126.0)
|
||||
self.assertEqual(self.get_dbus_dev_property(bat0_up, 'EnergyFullDesign'), 132.0)
|
||||
self.assertEqual(self.get_dbus_dev_property(bat0_up, 'Voltage'), 12.0)
|
||||
- self.assertEqual(self.get_dbus_dev_property(bat0_up, 'Percentage'), 40.0)
|
||||
self.stop_daemon()
|
||||
|
||||
|
||||
Diff finished. Tue Nov 8 16:48:57 2022
|
Loading…
Reference in New Issue
Block a user