From 997ab2f5b9faaf656d677392224325f2a2cbc966 Mon Sep 17 00:00:00 2001 From: "Hongzhi.Song" Date: Wed, 23 Jan 2019 02:14:28 -0500 Subject: runtime/ksample.py: correct a syntax and perfect item about architecture Signed-off-by: Hongzhi.Song Signed-off-by: Richard Purdie --- meta/lib/oeqa/runtime/cases/ksample.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta/lib/oeqa/runtime') diff --git a/meta/lib/oeqa/runtime/cases/ksample.py b/meta/lib/oeqa/runtime/cases/ksample.py index 584d0fb5e4..de2366a793 100644 --- a/meta/lib/oeqa/runtime/cases/ksample.py +++ b/meta/lib/oeqa/runtime/cases/ksample.py @@ -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 -- cgit 1.2.3-korg