]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime/parselogs: don't use uname to get MACHINE
authorRoss Burton <ross.burton@intel.com>
Thu, 23 Jul 2015 21:59:49 +0000 (22:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Jul 2015 22:29:41 +0000 (23:29 +0100)
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>
meta/lib/oeqa/runtime/parselogs.py

index ce9c162d91fa9d2dd380be82c858131407602267..ed43510d90e952064cfa4af5ba832d1e3c9c00b2 100644 (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):