summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/date.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-08 19:55:17 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-14 11:14:40 +0000
commit633bd85270922d71ab4b1f94cd166da51fbe1458 (patch)
tree65decddaa53d8f7415a6078fe82cf052f2f5c417 /meta/lib/oeqa/runtime/cases/date.py
parent4c034810e5ca6d8be5af9afc9172ac53cf12bf08 (diff)
downloadpoky-633bd85270922d71ab4b1f94cd166da51fbe1458.tar.gz
oeqa/runtime/cases: Improve test dependency information
Add the OEHasPackage decorator to a variety of tests so they determine automatically if they should run against a given image. To ensure tests can do this we need to move target operations such as scp commands into the tests and out of the class startup/teardown. (From OE-Core rev: 60d6580b85714b8960a964e775d76a7f937f5e5a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/date.py')
-rw-r--r--meta/lib/oeqa/runtime/cases/date.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/cases/date.py b/meta/lib/oeqa/runtime/cases/date.py
index ece7338de7..0887b831f4 100644
--- a/meta/lib/oeqa/runtime/cases/date.py
+++ b/meta/lib/oeqa/runtime/cases/date.py
@@ -3,6 +3,7 @@ import re
3from oeqa.runtime.case import OERuntimeTestCase 3from oeqa.runtime.case import OERuntimeTestCase
4from oeqa.core.decorator.depends import OETestDepends 4from oeqa.core.decorator.depends import OETestDepends
5from oeqa.core.decorator.oeid import OETestID 5from oeqa.core.decorator.oeid import OETestID
6from oeqa.runtime.decorator.package import OEHasPackage
6 7
7class DateTest(OERuntimeTestCase): 8class DateTest(OERuntimeTestCase):
8 9
@@ -18,6 +19,7 @@ class DateTest(OERuntimeTestCase):
18 19
19 @OETestID(211) 20 @OETestID(211)
20 @OETestDepends(['ssh.SSHTest.test_ssh']) 21 @OETestDepends(['ssh.SSHTest.test_ssh'])
22 @OEHasPackage(['coreutils', 'busybox'])
21 def test_date(self): 23 def test_date(self):
22 (status, output) = self.target.run('date +"%Y-%m-%d %T"') 24 (status, output) = self.target.run('date +"%Y-%m-%d %T"')
23 msg = 'Failed to get initial date, output: %s' % output 25 msg = 'Failed to get initial date, output: %s' % output