]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime/cases/selftest.py: rename to _selftest.py
authorChen Qi <Qi.Chen@windriver.com>
Mon, 4 Jun 2018 03:10:07 +0000 (11:10 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Jun 2018 17:01:29 +0000 (18:01 +0100)
This test modules is designed to be invoked only by selftest. It's
not meant to be tested by normal runtime test. So it should be renamed
with '_' prefix, so that it will not be automatically loaded by normal
runtime tests when 'auto' is in TEST_SUITES.

The failure message is as below.

  RESULTS - selftest.Selftest.test_install_package - Testcase -1: FAILED

Also, change selftest/cases/runtime_test.py to use '_selftest' accordingly.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
fix _selftest

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/lib/oeqa/runtime/cases/_selftest.py [moved from meta-selftest/lib/oeqa/runtime/cases/selftest.py with 94% similarity]
meta/lib/oeqa/selftest/cases/runtime_test.py

similarity index 94%
rename from meta-selftest/lib/oeqa/runtime/cases/selftest.py
rename to meta-selftest/lib/oeqa/runtime/cases/_selftest.py
index 19de7406236e5b7b827a926b966d1d99d22a0654..e6c05ef4436895557e75b1c63fc688e57b27a22c 100644 (file)
@@ -17,7 +17,7 @@ class Selftest(OERuntimeTestCase):
         (status, output) = self.target.run("socat -V")
         self.assertEqual(status, 0, msg="socat is not installed")
 
-    @OETestDepends(['selftest.Selftest.test_install_package'])
+    @OETestDepends(['_selftest.Selftest.test_install_package'])
     def test_verify_uninstall(self):
         """
         Summary: Check basic package installation functionality.
index 30fd9b2a50fd6e1c0099e512fc1faae286d07b1a..7f1c188c31913a72613b9ef9de7034b59ae06b44 100644 (file)
@@ -122,7 +122,7 @@ class TestImage(OESelftestTestCase):
             self.skipTest('core-image-full-cmdline not buildable for poky-tiny')
 
         features = 'INHERIT += "testimage"\n'
-        features += 'TEST_SUITES = "ping ssh selftest"\n'
+        features += 'TEST_SUITES = "ping ssh _selftest"\n'
         self.write_config(features)
 
         # Build core-image-sato and testimage