Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afc80f06 authored by Andrei Homescu's avatar Andrei Homescu
Browse files

trusty_driver_test: Filter out some tainted bits

Filter out the out-of-tree and unsigned module bits
because our CI builds always have one or both of those.

Bug: 284057071
Test: adb shell /.../trusty_driver_test
Change-Id: I2c736fbb413b44d82558e71e2a8eac66e69cbdee
parent 23fe418c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -77,8 +77,10 @@ class TrustyDriverTest(unittest.TestCase):
        self.assertTrue(ver.startswith("Project:"))

    def testUntaintedLinux(self):
        tainted = ReadFile("/proc/sys/kernel/tainted")
        self.assertEqual(tainted, "0")
        tainted = int(ReadFile("/proc/sys/kernel/tainted"))
        # Filter out the out-of-tree and unsigned module bits
        tainted &= ~0x3000
        self.assertEqual(tainted, 0)

    # stdcall test with shared memory buffers.
    # Each test run takes up to 4 arguments: