[oe-commits] [openembedded-core] 13/17: oeqa/runtime/ksample.py: skip kprobe case except x86 and powerpc

git at git.openembedded.org git at git.openembedded.org
Thu Jan 17 22:22:12 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 69808f9580dcdd0cf46a961d5c017e127f895e0b
Author: Hongzhi.Song <hongzhi.song at windriver.com>
AuthorDate: Thu Jan 17 01:44:15 2019 -0800

    oeqa/runtime/ksample.py: skip kprobe case except x86 and powerpc
    
    A new commit was introduced to kernel, which caused kprobe sample case
    failed on arm.
    [kernel commit: e46daee53bb50b, ARM: 8806/1: kprobes: Fix false positive
    with FORTIFY_SOURCE]
    
    And according to author, the case just works on x86 and powerpc.
    So we just promise that the case can pass on x86 and powerpc.
    
    Signed-off-by: Hongzhi.Song <hongzhi.song at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/runtime/cases/ksample.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta/lib/oeqa/runtime/cases/ksample.py b/meta/lib/oeqa/runtime/cases/ksample.py
index 354cc97..584d0fb 100644
--- a/meta/lib/oeqa/runtime/cases/ksample.py
+++ b/meta/lib/oeqa/runtime/cases/ksample.py
@@ -22,6 +22,12 @@ class KSample(OERuntimeTestCase):
             self.assertTrue(result, msg)
             self.assertEqual(status, 0, cmd)
 
+    def check_arch(self, archset=''):
+        status, output = self.target.run("uname -m")
+        result = ("%s" % output) in archset
+        if not result:
+            self.skipTest("This case doesn't support %s" % output)
+
     def check_config(self, config_opt=''):
         cmd = "zcat /proc/config.gz | grep %s" % config_opt
         status, output = self.target.run(cmd)
@@ -99,6 +105,7 @@ class KSampleTest(KSample):
     # kprobe
     @OETestDepends(['ssh.SSHTest.test_ssh'])
     def test_kprobe_test(self):
+        self.check_arch("x86 ppc")
         index = ["kprobe", "kretprobe"]
         for i in index:
             self.kprobe_func(i)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list