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.

(From OE-Core rev: 17efc6b3284f165a9df14090dec57d877e0c36fa)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton 2015-07-23 22:59:49 +01:00 committed by Richard Purdie
parent 46cb3f0d2f
commit b0f034e4db
1 changed files with 1 additions and 2 deletions

View File

@ -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):