mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 12:49:34 +02:00
oeqa/rutime: Added testcase decorators for automated runtime tests. Also added LogResults decorator for oeTest class in oetest.py
(From OE-Core rev: 95b83084487d0712362ade8ac487999c3274bb96) Signed-off-by: Lucian Musat <georgex.l.musat@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
242cceeedf
commit
8e26ab7d52
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
from oeqa.oetest import oeRuntimeTest, skipModule
|
||||
from oeqa.utils.decorators import skipUnlessPassed
|
||||
from oeqa.utils.decorators import skipUnlessPassed, testcase
|
||||
|
||||
def setUpModule():
|
||||
if not (oeRuntimeTest.hasPackage("dropbear") or oeRuntimeTest.hasPackage("openssh-sshd")):
|
||||
@@ -8,6 +8,7 @@ def setUpModule():
|
||||
|
||||
class ScpTest(oeRuntimeTest):
|
||||
|
||||
@testcase(220)
|
||||
@skipUnlessPassed('test_ssh')
|
||||
def test_scp_file(self):
|
||||
test_log_dir = oeRuntimeTest.tc.d.getVar("TEST_LOG_DIR", True)
|
||||
|
||||
Reference in New Issue
Block a user