aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/parselogs.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-07-23 22:59:49 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-24 23:29:41 +0100
commit17efc6b3284f165a9df14090dec57d877e0c36fa (patch)
treec7b630a5c547f21c5896eb32255c33dc034fe209 /meta/lib/oeqa/runtime/parselogs.py
parent4d777ce9736e91bb560558b691b8025acf784046 (diff)
downloadopenembedded-core-contrib-17efc6b3284f165a9df14090dec57d877e0c36fa.tar.gz
oeqa/runtime/parselogs: don't use uname to get MACHINE
Instead of running "uname -n" on the target (which actually returns the hostname) to get something approximating the hostname (or not, if that has been overriden), simply fetch MACHINE from the datastore. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/parselogs.py')
-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 ce9c162d91..ed43510d90 100644
--- a/meta/lib/oeqa/runtime/parselogs.py
+++ b/meta/lib/oeqa/runtime/parselogs.py
@@ -124,8 +124,7 @@ class ParseLogsTest(oeRuntimeTest):
self.msg = ""
def getMachine(self):
- (status, output) = self.target.run("uname -n")
- return output
+ return oeRuntimeTest.tc.d.getVar("MACHINE", True)
#get some information on the CPU of the machine to display at the beginning of the output. This info might be useful in some cases.
def getHardwareInfo(self):