]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime/parselogs.py: Fix dmesg log retrieve in sato
authorAníbal Limón <anibal.limon@linux.intel.com>
Wed, 23 Sep 2015 18:29:25 +0000 (13:29 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Sep 2015 21:07:20 +0000 (22:07 +0100)
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@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/parselogs.py

index e20947b8bcbd9736edf6e93301b2b8b7e5120e0c..e2dd3eb2c0346e6d842ff9ee8618170769a31fc9 100644 (file)
@@ -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')