diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2015-09-23 13:29:25 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-24 17:54:26 +0100 |
commit | 61e77c7166c8a476763ce7ef71db2fb3440422f9 (patch) | |
tree | 9615ab04d84ed64713d3443cbeaf404b9a55e8c5 /meta/lib/oeqa | |
parent | dd26efba0616e253466c1f5a83775e3079f3e9be (diff) | |
download | poky-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.py | 3 |
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') |