[oe-commits] Ross Burton : oeqa/runtime/parselogs: don't use uname to get MACHINE
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 23 22:18:38 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 18f76a81aace2f4164efbf6b496af9f070e6cd45
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=18f76a81aace2f4164efbf6b496af9f070e6cd45
Author: Ross Burton <ross.burton at intel.com>
Date: Thu Jul 23 22:59:49 2015 +0100
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 at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oeqa/runtime/parselogs.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/meta/lib/oeqa/runtime/parselogs.py b/meta/lib/oeqa/runtime/parselogs.py
index ce9c162..ed43510 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):
More information about the Openembedded-commits
mailing list