diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-03-30 15:21:19 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-03-30 15:21:19 -0500 |
commit | b4a027550acf2c1051c34f997b8e7e845017af4b (patch) | |
tree | 9e38d3c17b42cb1e6765620a87e908973a93c821 /yocto-poky/meta/lib/oeqa/runtime | |
parent | 2fe86d90044af218ced8f42fdded6b136f1046d2 (diff) | |
parent | f1e5d6968976c2341c6d554bfcc8895f1b33c26b (diff) | |
download | talos-openbmc-b4a027550acf2c1051c34f997b8e7e845017af4b.tar.gz talos-openbmc-b4a027550acf2c1051c34f997b8e7e845017af4b.zip |
Merge commit 'f1e5d6968976c2341c6d554bfcc8895f1b33c26b' from yocto-2.0.1
Diffstat (limited to 'yocto-poky/meta/lib/oeqa/runtime')
-rw-r--r-- | yocto-poky/meta/lib/oeqa/runtime/_ptest.py | 2 | ||||
-rw-r--r-- | yocto-poky/meta/lib/oeqa/runtime/connman.py | 23 | ||||
-rw-r--r-- | yocto-poky/meta/lib/oeqa/runtime/date.py | 4 | ||||
-rw-r--r-- | yocto-poky/meta/lib/oeqa/runtime/files/testsdkmakefile | 5 | ||||
-rw-r--r-- | yocto-poky/meta/lib/oeqa/runtime/kernelmodule.py | 4 | ||||
-rw-r--r-- | yocto-poky/meta/lib/oeqa/runtime/parselogs.py | 13 | ||||
-rw-r--r-- | yocto-poky/meta/lib/oeqa/runtime/scanelf.py | 2 |
7 files changed, 16 insertions, 37 deletions
diff --git a/yocto-poky/meta/lib/oeqa/runtime/_ptest.py b/yocto-poky/meta/lib/oeqa/runtime/_ptest.py index 81c9c4386..0621028b8 100644 --- a/yocto-poky/meta/lib/oeqa/runtime/_ptest.py +++ b/yocto-poky/meta/lib/oeqa/runtime/_ptest.py @@ -98,7 +98,7 @@ class PtestRunnerTest(oeRuntimeTest): return complementary_pkgs.split() - def setUp(self): + def setUpLocal(self): self.ptest_log = os.path.join(oeRuntimeTest.tc.d.getVar("TEST_LOG_DIR",True), "ptest-%s.log" % oeRuntimeTest.tc.d.getVar('DATETIME', True)) @skipUnlessPassed('test_ssh') diff --git a/yocto-poky/meta/lib/oeqa/runtime/connman.py b/yocto-poky/meta/lib/oeqa/runtime/connman.py index ee69e5df9..bd9dba3bd 100644 --- a/yocto-poky/meta/lib/oeqa/runtime/connman.py +++ b/yocto-poky/meta/lib/oeqa/runtime/connman.py @@ -29,26 +29,3 @@ class ConnmanTest(oeRuntimeTest): if status != 0: print self.service_status("connman") self.fail("No connmand process running") - - @testcase(223) - def test_only_one_connmand_in_background(self): - """ - Summary: Only one connmand in background - Expected: There will be only one connmand instance in background. - Product: BSPs - Author: Alexandru Georgescu <alexandru.c.georgescu@intel.com> - AutomatedBy: Daniel Istrate <daniel.alexandrux.istrate@intel.com> - """ - - # Make sure that 'connmand' is running in background - (status, output) = self.target.run(oeRuntimeTest.pscmd + ' | grep [c]onnmand') - self.assertEqual(0, status, 'Failed to find "connmand" process running in background.') - - # Start a new instance of 'connmand' - (status, output) = self.target.run('connmand') - self.assertEqual(0, status, 'Failed to start a new "connmand" process.') - - # Make sure that only one 'connmand' is running in background - (status, output) = self.target.run(oeRuntimeTest.pscmd + ' | grep [c]onnmand | wc -l') - self.assertEqual(0, status, 'Failed to find "connmand" process running in background.') - self.assertEqual(1, int(output), 'Found {} connmand processes running, expected 1.'.format(output)) diff --git a/yocto-poky/meta/lib/oeqa/runtime/date.py b/yocto-poky/meta/lib/oeqa/runtime/date.py index 3a8fe8481..447987e07 100644 --- a/yocto-poky/meta/lib/oeqa/runtime/date.py +++ b/yocto-poky/meta/lib/oeqa/runtime/date.py @@ -4,11 +4,11 @@ import re class DateTest(oeRuntimeTest): - def setUp(self): + def setUpLocal(self): if oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager", True) == "systemd": self.target.run('systemctl stop systemd-timesyncd') - def tearDown(self): + def tearDownLocal(self): if oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager", True) == "systemd": self.target.run('systemctl start systemd-timesyncd') diff --git a/yocto-poky/meta/lib/oeqa/runtime/files/testsdkmakefile b/yocto-poky/meta/lib/oeqa/runtime/files/testsdkmakefile new file mode 100644 index 000000000..fb05f822f --- /dev/null +++ b/yocto-poky/meta/lib/oeqa/runtime/files/testsdkmakefile @@ -0,0 +1,5 @@ +test: test.o + $(CC) -o test test.o -lm +test.o: test.c + $(CC) -c test.c + diff --git a/yocto-poky/meta/lib/oeqa/runtime/kernelmodule.py b/yocto-poky/meta/lib/oeqa/runtime/kernelmodule.py index 2e8172032..38ca18454 100644 --- a/yocto-poky/meta/lib/oeqa/runtime/kernelmodule.py +++ b/yocto-poky/meta/lib/oeqa/runtime/kernelmodule.py @@ -10,7 +10,7 @@ def setUpModule(): class KernelModuleTest(oeRuntimeTest): - def setUp(self): + def setUpLocal(self): self.target.copy_to(os.path.join(oeRuntimeTest.tc.filesdir, "hellomod.c"), "/tmp/hellomod.c") self.target.copy_to(os.path.join(oeRuntimeTest.tc.filesdir, "hellomod_makefile"), "/tmp/Makefile") @@ -30,5 +30,5 @@ class KernelModuleTest(oeRuntimeTest): (status, output) = self.target.run(cmd, 900) self.assertEqual(status, 0, msg="\n".join([cmd, output])) - def tearDown(self): + def tearDownLocal(self): self.target.run('rm -f /tmp/Makefile /tmp/hellomod.c') diff --git a/yocto-poky/meta/lib/oeqa/runtime/parselogs.py b/yocto-poky/meta/lib/oeqa/runtime/parselogs.py index e20947b8b..fc2bc3893 100644 --- a/yocto-poky/meta/lib/oeqa/runtime/parselogs.py +++ b/yocto-poky/meta/lib/oeqa/runtime/parselogs.py @@ -36,6 +36,8 @@ common_errors = [ 'VGA arbiter: cannot open kernel arbiter, no multi-card support', 'Failed to find URL:http://ipv4.connman.net/online/status.html', 'Online check failed for', + 'netlink init failed', + 'Fast TSC calibration', ] x86_common = [ @@ -46,7 +48,6 @@ x86_common = [ ] + common_errors qemux86_common = [ - 'Fast TSC calibration', 'wrong ELF class', "fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.", "can't claim BAR ", @@ -89,7 +90,7 @@ ignore_errors = { '(EE) open /dev/fb0: No such file or directory', '(EE) AIGLX: reverting to software rendering', ] + x86_common, - 'core2_32' : [ + 'intel-core2-32' : [ 'ACPI: No _BQC method, cannot determine initial brightness', '[Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness', '(EE) Failed to load module "psb"', @@ -98,6 +99,7 @@ ignore_errors = { '(EE) Failed to load module psbdrv', '(EE) open /dev/fb0: No such file or directory', '(EE) AIGLX: reverting to software rendering', + "controller can't do DEVSLP, turning off", ] + x86_common, 'intel-corei7-64' : [ "controller can't do DEVSLP, turning off", @@ -108,13 +110,9 @@ ignore_errors = { 'edgerouter' : [ 'Fatal server error:', ] + common_errors, - 'minnow' : [ - 'netlink init failed', - ] + common_errors, 'jasperforest' : [ 'Activated service \'org.bluez\' failed:', 'Unable to find NFC netlink family', - 'netlink init failed', ] + common_errors, } @@ -233,8 +231,7 @@ class ParseLogsTest(oeRuntimeTest): #get the output of dmesg and write it in a file. This file is added to log_locations. def write_dmesg(self): - (status, dmesg) = self.target.run("dmesg") - (status, dmesg2) = self.target.run("echo \""+str(dmesg)+"\" > /tmp/dmesg_output.log") + (status, dmesg) = self.target.run("dmesg > /tmp/dmesg_output.log") @testcase(1059) @skipUnlessPassed('test_ssh') diff --git a/yocto-poky/meta/lib/oeqa/runtime/scanelf.py b/yocto-poky/meta/lib/oeqa/runtime/scanelf.py index 43a024ab9..67e02ff45 100644 --- a/yocto-poky/meta/lib/oeqa/runtime/scanelf.py +++ b/yocto-poky/meta/lib/oeqa/runtime/scanelf.py @@ -8,7 +8,7 @@ def setUpModule(): class ScanelfTest(oeRuntimeTest): - def setUp(self): + def setUpLocal(self): self.scancmd = 'scanelf --quiet --recursive --mount --ldpath --path' @testcase(966) |