aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>2019-12-02 10:17:48 +0100
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2019-12-06 09:23:55 +0100
commit93273b66211699c4d451f96febfae96594912599 (patch)
tree53c6849eef845fdc5ff5ebe27daee731079b90e4
parent796da36ea2d728849362a69dcafe9eeeb050479e (diff)
downloadcros-ec-tests-93273b66211699c4d451f96febfae96594912599.tar.gz
test_cros_ec_battery_cutoff_at_shutdown: Remove the test
This feature never landed to mainline and is failing for all devices, so remove the test. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
-rwxr-xr-xtest-cros-ec.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/test-cros-ec.py b/test-cros-ec.py
index 8a77dcf..f504b96 100755
--- a/test-cros-ec.py
+++ b/test-cros-ec.py
@@ -245,39 +245,6 @@ class TestCrosEC(unittest.TestCase):
# magic number that the EC answers on HELLO
self.assertEqual(response.out_data, 0xa1b2c3d4)
- # EC_FEATURE_BATTERY: Battery cutoff at-shutdown
- def test_cros_ec_battery_cutoff_at_shutdown(self):
- if not is_feature_supported(EC_FEATURE_BATTERY):
- self.skipTest("EC_FEATURE_BATTERY not supported, skipping")
-
- self.assertEqual(os.path.exists("/sys/class/chromeos/cros_ec/" + "battery_cutoff"), 1)
-
- fd = open("/sys/class/chromeos/cros_ec/" + "battery_cutoff", 'w')
- fd.write("at-shutdown")
- fd.close()
-
- fd = open("/sys/class/chromeos/cros_ec/" + "battery_cutoff", 'w')
- fd.write("at-shutdown\n")
- fd.close()
-
- with self.assertRaises(IOError) as cm:
- fd = open("/sys/class/chromeos/cros_ec/" + "battery_cutoff", 'w')
- fd.write("at-shutdown-")
- fd.close()
- self.assertEqual(cm.exception.error_code, 22)
-
- with self.assertRaises(IOError) as cm:
- fd = open("/sys/class/chromeos/cros_ec/" + "battery_cutoff", 'w')
- fd.write("at-shutdow-")
- fd.close()
- self.assertEqual(cm.exception.error_code, 22)
-
- with self.assertRaises(IOError) as cm:
- fd = open("/sys/class/chromeos/cros_ec/" + "battery_cutoff", 'w')
- fd.write("at-shutdow")
- fd.close()
- self.assertEqual(cm.exception.error_code, 22)
-
def test_cros_ec_accel_iio_abi(self):
files = [ "buffer", "calibrate", "current_timestamp_clock", "id",
"in_accel_x_calibbias", "in_accel_x_calibscale",