summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-09-23 13:29:25 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-23 22:07:20 +0100
commit89107d0e01235b8cff70c0325723d2a99d2c336c (patch)
tree89cd2a9d8334a8ccd62a15ab1f57465190006d42
parent67a1e4b087a39db04370685616d5b439b0f2b505 (diff)
downloadopenembedded-core-contrib-89107d0e01235b8cff70c0325723d2a99d2c336c.tar.gz
openembedded-core-contrib-89107d0e01235b8cff70c0325723d2a99d2c336c.tar.bz2
openembedded-core-contrib-89107d0e01235b8cff70c0325723d2a99d2c336c.zip
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@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/runtime/parselogs.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/parselogs.py b/meta/lib/oeqa/runtime/parselogs.py
index e20947b8bc..e2dd3eb2c0 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')