summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
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-24 17:54:26 +0100
commit61e77c7166c8a476763ce7ef71db2fb3440422f9 (patch)
tree9615ab04d84ed64713d3443cbeaf404b9a55e8c5 /meta/lib/oeqa
parentdd26efba0616e253466c1f5a83775e3079f3e9be (diff)
downloadpoky-61e77c7166c8a476763ce7ef71db2fb3440422f9.tar.gz
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] (From OE-Core rev: 89107d0e01235b8cff70c0325723d2a99d2c336c) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-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):
233 233
234 #get the output of dmesg and write it in a file. This file is added to log_locations. 234 #get the output of dmesg and write it in a file. This file is added to log_locations.
235 def write_dmesg(self): 235 def write_dmesg(self):
236 (status, dmesg) = self.target.run("dmesg") 236 (status, dmesg) = self.target.run("dmesg > /tmp/dmesg_output.log")
237 (status, dmesg2) = self.target.run("echo \""+str(dmesg)+"\" > /tmp/dmesg_output.log")
238 237
239 @testcase(1059) 238 @testcase(1059)
240 @skipUnlessPassed('test_ssh') 239 @skipUnlessPassed('test_ssh')