summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/runtime/connman.py2
-rw-r--r--meta/lib/oeqa/runtime/parselogs.py2
-rwxr-xr-xmeta/lib/oeqa/selftest/esdk_prepare.py8
-rw-r--r--meta/lib/oeqa/selftest/sstatetests.py10
4 files changed, 11 insertions, 11 deletions
diff --git a/meta/lib/oeqa/runtime/connman.py b/meta/lib/oeqa/runtime/connman.py
index bd9dba3bd0..003fefe2ce 100644
--- a/meta/lib/oeqa/runtime/connman.py
+++ b/meta/lib/oeqa/runtime/connman.py
@@ -27,5 +27,5 @@ class ConnmanTest(oeRuntimeTest):
27 def test_connmand_running(self): 27 def test_connmand_running(self):
28 (status, output) = self.target.run(oeRuntimeTest.pscmd + ' | grep [c]onnmand') 28 (status, output) = self.target.run(oeRuntimeTest.pscmd + ' | grep [c]onnmand')
29 if status != 0: 29 if status != 0:
30 print self.service_status("connman") 30 print(self.service_status("connman"))
31 self.fail("No connmand process running") 31 self.fail("No connmand process running")
diff --git a/meta/lib/oeqa/runtime/parselogs.py b/meta/lib/oeqa/runtime/parselogs.py
index dec9ebe874..a93660131d 100644
--- a/meta/lib/oeqa/runtime/parselogs.py
+++ b/meta/lib/oeqa/runtime/parselogs.py
@@ -262,7 +262,7 @@ class ParseLogsTest(oeRuntimeTest):
262 self.write_dmesg() 262 self.write_dmesg()
263 log_list = self.get_local_log_list(self.log_locations) 263 log_list = self.get_local_log_list(self.log_locations)
264 result = self.parse_logs(self.errors, self.ignore_errors, log_list) 264 result = self.parse_logs(self.errors, self.ignore_errors, log_list)
265 print self.getHardwareInfo() 265 print(self.getHardwareInfo())
266 errcount = 0 266 errcount = 0
267 for log in result: 267 for log in result:
268 self.msg += "Log: "+log+"\n" 268 self.msg += "Log: "+log+"\n"
diff --git a/meta/lib/oeqa/selftest/esdk_prepare.py b/meta/lib/oeqa/selftest/esdk_prepare.py
index 1b36a0d682..406089787d 100755
--- a/meta/lib/oeqa/selftest/esdk_prepare.py
+++ b/meta/lib/oeqa/selftest/esdk_prepare.py
@@ -28,8 +28,8 @@ class ExtSdkPrepareTest(unittest.TestCase):
28 # load module under test 28 # load module under test
29 self.test_mod = imp.load_source("", module_dest_path) 29 self.test_mod = imp.load_source("", module_dest_path)
30 except: 30 except:
31 print "error: unable to copy or load %s [src: %s, dst: %s]" % \ 31 print("error: unable to copy or load %s [src: %s, dst: %s]" % \
32 (module_file_name, module_path, module_dest_path) 32 (module_file_name, module_path, module_dest_path))
33 sys.exit(1) 33 sys.exit(1)
34 34
35 def test_prepare_unexpected(self): 35 def test_prepare_unexpected(self):
@@ -66,8 +66,8 @@ if __name__ == '__main__':
66 unittest.TextTestRunner().run(suite) 66 unittest.TextTestRunner().run(suite)
67 else: 67 else:
68 progname = os.path.basename(sys.argv[0]) 68 progname = os.path.basename(sys.argv[0])
69 print "%s: missing directory path" % progname 69 print("%s: missing directory path" % progname)
70 print "usage: %s /path/to/directory-of(ext-sdk-prepare.py)" % progname 70 print("usage: %s /path/to/directory-of(ext-sdk-prepare.py)" % progname)
71 sys.exit(1) 71 sys.exit(1)
72else: 72else:
73 # running under oe-selftest 73 # running under oe-selftest
diff --git a/meta/lib/oeqa/selftest/sstatetests.py b/meta/lib/oeqa/selftest/sstatetests.py
index ad591469d3..a1e5d33580 100644
--- a/meta/lib/oeqa/selftest/sstatetests.py
+++ b/meta/lib/oeqa/selftest/sstatetests.py
@@ -454,14 +454,14 @@ http_proxy = "http://example.com/"
454 454
455 for k in files1.viewkeys() | files2.viewkeys(): 455 for k in files1.viewkeys() | files2.viewkeys():
456 if k in files1 and k in files2: 456 if k in files1 and k in files2:
457 print "%s differs:" % k 457 print("%s differs:" % k)
458 print subprocess.check_output(("bitbake-diffsigs", 458 print(subprocess.check_output(("bitbake-diffsigs",
459 topdir + "/tmp-sstatesamehash/stamps/" + k + "." + files1[k], 459 topdir + "/tmp-sstatesamehash/stamps/" + k + "." + files1[k],
460 topdir + "/tmp-sstatesamehash2/stamps/" + k + "." + files2[k])) 460 topdir + "/tmp-sstatesamehash2/stamps/" + k + "." + files2[k])))
461 elif k in files1 and k not in files2: 461 elif k in files1 and k not in files2:
462 print "%s in files1" % k 462 print("%s in files1" % k)
463 elif k not in files1 and k in files2: 463 elif k not in files1 and k in files2:
464 print "%s in files2" % k 464 print("%s in files2" % k)
465 else: 465 else:
466 assert "shouldn't reach here" 466 assert "shouldn't reach here"
467 self.fail("sstate hashes not identical.") 467 self.fail("sstate hashes not identical.")