diff options
author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2015-10-15 06:29:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-19 17:57:59 +0100 |
commit | b8f704285f2e00b30f5007217b8575e0820953f1 (patch) | |
tree | 4fa2d36258e85b6c4e8a9df3e3ebb4c86f0cebd7 /meta/lib/oeqa/runtime/_ptest.py | |
parent | 33274012640be85ea2d1349cd7e3e43e9d8f1ca7 (diff) | |
download | poky-b8f704285f2e00b30f5007217b8575e0820953f1.tar.gz |
oeqa/runtime: Fix setUp and tearDown methods
Currently some of the runtime test overwrites
the setUp and tearDown methods provided by
oeRuntimeTest, this will avoid some checks
required when running the test suit.
This patch changes the setUp and tearDown methods
for their local counterparts, so when these
tests are called, it will run the parent setUp
and tearDown and also the local ones.
[YOCTO #8465]
(From OE-Core rev: 13282223b07787a92c251f89251e8a49a0e4e3eb)
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/_ptest.py')
-rw-r--r-- | meta/lib/oeqa/runtime/_ptest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/_ptest.py b/meta/lib/oeqa/runtime/_ptest.py index 81c9c43862..0621028b86 100644 --- a/meta/lib/oeqa/runtime/_ptest.py +++ b/meta/lib/oeqa/runtime/_ptest.py | |||
@@ -98,7 +98,7 @@ class PtestRunnerTest(oeRuntimeTest): | |||
98 | 98 | ||
99 | return complementary_pkgs.split() | 99 | return complementary_pkgs.split() |
100 | 100 | ||
101 | def setUp(self): | 101 | def setUpLocal(self): |
102 | self.ptest_log = os.path.join(oeRuntimeTest.tc.d.getVar("TEST_LOG_DIR",True), "ptest-%s.log" % oeRuntimeTest.tc.d.getVar('DATETIME', True)) | 102 | self.ptest_log = os.path.join(oeRuntimeTest.tc.d.getVar("TEST_LOG_DIR",True), "ptest-%s.log" % oeRuntimeTest.tc.d.getVar('DATETIME', True)) |
103 | 103 | ||
104 | @skipUnlessPassed('test_ssh') | 104 | @skipUnlessPassed('test_ssh') |