From: Ross Burton Date: Thu, 23 Jul 2015 21:59:49 +0000 (+0100) Subject: oeqa/runtime/parselogs: don't use uname to get MACHINE X-Git-Tag: 2015-10~1120 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=17efc6b3284f165a9df14090dec57d877e0c36fa;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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):