[oe-commits] =?UTF-8?Q?An=C3=ADbal=20Lim=C3=B3n=20?=: oeqa/runtime/parselogs.py: Fix dmesg log retrieve in sato

git at git.openembedded.org git at git.openembedded.org
Wed Sep 23 21:12:59 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 89107d0e01235b8cff70c0325723d2a99d2c336c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=89107d0e01235b8cff70c0325723d2a99d2c336c

Author: Aníbal Limón <anibal.limon at linux.intel.com>
Date:   Wed Sep 23 13:29:25 2015 -0500

oeqa/runtime/parselogs.py: Fix dmesg log retrieve in sato

Sato uses busybox that fails to write log using echo "" because
dmesg output can contain special characters.

[YOCTO #8377]

Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oeqa/runtime/parselogs.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/runtime/parselogs.py b/meta/lib/oeqa/runtime/parselogs.py
index e20947b..e2dd3eb 100644
--- a/meta/lib/oeqa/runtime/parselogs.py
+++ b/meta/lib/oeqa/runtime/parselogs.py
@@ -233,8 +233,7 @@ class ParseLogsTest(oeRuntimeTest):
 
     #get the output of dmesg and write it in a file. This file is added to log_locations.
     def write_dmesg(self):
-        (status, dmesg) = self.target.run("dmesg")
-        (status, dmesg2) = self.target.run("echo \""+str(dmesg)+"\" > /tmp/dmesg_output.log")
+        (status, dmesg) = self.target.run("dmesg > /tmp/dmesg_output.log")
 
     @testcase(1059)
     @skipUnlessPassed('test_ssh')



More information about the Openembedded-commits mailing list