]> code.ossystems Code Review - openembedded-core.git/commitdiff
runtime/ksample.py: correct a syntax and perfect item about architecture
authorHongzhi.Song <hongzhi.song@windriver.com>
Wed, 23 Jan 2019 07:14:28 +0000 (02:14 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Jan 2019 17:45:18 +0000 (17:45 +0000)
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/cases/ksample.py

index 584d0fb5e4210cc3a06ea6f03263b879f640cf9f..de2366a79390f5e9a3ea10a07a26ef41597df3d5 100644 (file)
@@ -105,7 +105,7 @@ class KSampleTest(KSample):
     # kprobe
     @OETestDepends(['ssh.SSHTest.test_ssh'])
     def test_kprobe_test(self):
-        self.check_arch("x86 ppc")
+        self.check_arch("x86_64 i686 ppc")
         index = ["kprobe", "kretprobe"]
         for i in index:
             self.kprobe_func(i)
@@ -173,9 +173,9 @@ class KSampleTest(KSample):
     def test_hw_breakpoint_example(self):
         # check arch
         status, output = self.target.run("uname -m")
-        result = ("x86" in output) or ("aarch64" in output)
+        result = ("x86_64" in output) or ("aarch64" in output)
         if not result:
-            self.skipTest("the arch doesn't support hw breakpoint" % output)
+            self.skipTest("the arch %s doesn't support hw breakpoint" % output)
         # check config
         self.check_config("CONFIG_KALLSYMS_ALL")
         # make sure if module exists