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-23 22:07:20 +0100 |
commit | 89107d0e01235b8cff70c0325723d2a99d2c336c (patch) | |
tree | 89cd2a9d8334a8ccd62a15ab1f57465190006d42 | |
parent | 67a1e4b087a39db04370685616d5b439b0f2b505 (diff) | |
download | openembedded-core-89107d0e01235b8cff70c0325723d2a99d2c336c.tar.gz openembedded-core-89107d0e01235b8cff70c0325723d2a99d2c336c.tar.bz2 openembedded-core-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.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): #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') |