summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/rt.py
blob: 849ac1914e8174d88834d1cf7416c2b380d7e2df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# SPDX-License-Identifier: MIT
#

from oeqa.runtime.case import OERuntimeTestCase
from oeqa.core.decorator.depends import OETestDepends

class RtTest(OERuntimeTestCase):
    @OETestDepends(['ssh.SSHTest.test_ssh'])
    def test_is_rt(self):
        """
        Check that the kernel has CONFIG_PREEMPT_RT enabled.
        """
        status, output = self.target.run("uname -a")
        self.assertEqual(status, 0, msg=output)
        # Split so we don't get a substring false-positive
        self.assertIn("PREEMPT_RT", output.split())