diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-08 16:56:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-09 16:31:55 +0100 |
commit | c7592b01478def091b6787412390c61e7ce0a0cd (patch) | |
tree | 3c2f26480c6e16fae0ad65b032e3dc0fccfca71b /meta/lib/oeqa/selftest/cases/tinfoil.py | |
parent | c0dc72bad92e2e4dc0aedb48b969709f821baf73 (diff) | |
download | poky-c7592b01478def091b6787412390c61e7ce0a0cd.tar.gz |
oeqa: Drop OETestID
These IDs refer to testopia which we're no longer using. We would now use the test
names to definitively reference tests and the IDs can be dropped, along with their
supporting code.
(From OE-Core rev: 8e2d0575e4e7036b5f60e632f377a8ab2b96ead8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/tinfoil.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/tinfoil.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/meta/lib/oeqa/selftest/cases/tinfoil.py b/meta/lib/oeqa/selftest/cases/tinfoil.py index f889a47b26..6c246d5306 100644 --- a/meta/lib/oeqa/selftest/cases/tinfoil.py +++ b/meta/lib/oeqa/selftest/cases/tinfoil.py | |||
@@ -6,12 +6,10 @@ import bb.tinfoil | |||
6 | 6 | ||
7 | from oeqa.selftest.case import OESelftestTestCase | 7 | from oeqa.selftest.case import OESelftestTestCase |
8 | from oeqa.utils.commands import runCmd | 8 | from oeqa.utils.commands import runCmd |
9 | from oeqa.core.decorator.oeid import OETestID | ||
10 | 9 | ||
11 | class TinfoilTests(OESelftestTestCase): | 10 | class TinfoilTests(OESelftestTestCase): |
12 | """ Basic tests for the tinfoil API """ | 11 | """ Basic tests for the tinfoil API """ |
13 | 12 | ||
14 | @OETestID(1568) | ||
15 | def test_getvar(self): | 13 | def test_getvar(self): |
16 | with bb.tinfoil.Tinfoil() as tinfoil: | 14 | with bb.tinfoil.Tinfoil() as tinfoil: |
17 | tinfoil.prepare(True) | 15 | tinfoil.prepare(True) |
@@ -19,7 +17,6 @@ class TinfoilTests(OESelftestTestCase): | |||
19 | if not machine: | 17 | if not machine: |
20 | self.fail('Unable to get MACHINE value - returned %s' % machine) | 18 | self.fail('Unable to get MACHINE value - returned %s' % machine) |
21 | 19 | ||
22 | @OETestID(1569) | ||
23 | def test_expand(self): | 20 | def test_expand(self): |
24 | with bb.tinfoil.Tinfoil() as tinfoil: | 21 | with bb.tinfoil.Tinfoil() as tinfoil: |
25 | tinfoil.prepare(True) | 22 | tinfoil.prepare(True) |
@@ -28,7 +25,6 @@ class TinfoilTests(OESelftestTestCase): | |||
28 | if not pid: | 25 | if not pid: |
29 | self.fail('Unable to expand "%s" - returned %s' % (expr, pid)) | 26 | self.fail('Unable to expand "%s" - returned %s' % (expr, pid)) |
30 | 27 | ||
31 | @OETestID(1570) | ||
32 | def test_getvar_bb_origenv(self): | 28 | def test_getvar_bb_origenv(self): |
33 | with bb.tinfoil.Tinfoil() as tinfoil: | 29 | with bb.tinfoil.Tinfoil() as tinfoil: |
34 | tinfoil.prepare(True) | 30 | tinfoil.prepare(True) |
@@ -37,7 +33,6 @@ class TinfoilTests(OESelftestTestCase): | |||
37 | self.fail('Unable to get BB_ORIGENV value - returned %s' % origenv) | 33 | self.fail('Unable to get BB_ORIGENV value - returned %s' % origenv) |
38 | self.assertEqual(origenv.getVar('HOME', False), os.environ['HOME']) | 34 | self.assertEqual(origenv.getVar('HOME', False), os.environ['HOME']) |
39 | 35 | ||
40 | @OETestID(1571) | ||
41 | def test_parse_recipe(self): | 36 | def test_parse_recipe(self): |
42 | with bb.tinfoil.Tinfoil() as tinfoil: | 37 | with bb.tinfoil.Tinfoil() as tinfoil: |
43 | tinfoil.prepare(config_only=False, quiet=2) | 38 | tinfoil.prepare(config_only=False, quiet=2) |
@@ -48,7 +43,6 @@ class TinfoilTests(OESelftestTestCase): | |||
48 | rd = tinfoil.parse_recipe_file(best[3]) | 43 | rd = tinfoil.parse_recipe_file(best[3]) |
49 | self.assertEqual(testrecipe, rd.getVar('PN')) | 44 | self.assertEqual(testrecipe, rd.getVar('PN')) |
50 | 45 | ||
51 | @OETestID(1572) | ||
52 | def test_parse_recipe_copy_expand(self): | 46 | def test_parse_recipe_copy_expand(self): |
53 | with bb.tinfoil.Tinfoil() as tinfoil: | 47 | with bb.tinfoil.Tinfoil() as tinfoil: |
54 | tinfoil.prepare(config_only=False, quiet=2) | 48 | tinfoil.prepare(config_only=False, quiet=2) |
@@ -67,7 +61,6 @@ class TinfoilTests(OESelftestTestCase): | |||
67 | localdata.setVar('PN', 'hello') | 61 | localdata.setVar('PN', 'hello') |
68 | self.assertEqual('hello', localdata.getVar('BPN')) | 62 | self.assertEqual('hello', localdata.getVar('BPN')) |
69 | 63 | ||
70 | @OETestID(1573) | ||
71 | def test_parse_recipe_initial_datastore(self): | 64 | def test_parse_recipe_initial_datastore(self): |
72 | with bb.tinfoil.Tinfoil() as tinfoil: | 65 | with bb.tinfoil.Tinfoil() as tinfoil: |
73 | tinfoil.prepare(config_only=False, quiet=2) | 66 | tinfoil.prepare(config_only=False, quiet=2) |
@@ -81,7 +74,6 @@ class TinfoilTests(OESelftestTestCase): | |||
81 | # Check we can get variable values | 74 | # Check we can get variable values |
82 | self.assertEqual('somevalue', rd.getVar('MYVARIABLE')) | 75 | self.assertEqual('somevalue', rd.getVar('MYVARIABLE')) |
83 | 76 | ||
84 | @OETestID(1574) | ||
85 | def test_list_recipes(self): | 77 | def test_list_recipes(self): |
86 | with bb.tinfoil.Tinfoil() as tinfoil: | 78 | with bb.tinfoil.Tinfoil() as tinfoil: |
87 | tinfoil.prepare(config_only=False, quiet=2) | 79 | tinfoil.prepare(config_only=False, quiet=2) |
@@ -100,7 +92,6 @@ class TinfoilTests(OESelftestTestCase): | |||
100 | if checkpns: | 92 | if checkpns: |
101 | self.fail('Unable to find pkg_fn entries for: %s' % ', '.join(checkpns)) | 93 | self.fail('Unable to find pkg_fn entries for: %s' % ', '.join(checkpns)) |
102 | 94 | ||
103 | @OETestID(1575) | ||
104 | def test_wait_event(self): | 95 | def test_wait_event(self): |
105 | with bb.tinfoil.Tinfoil() as tinfoil: | 96 | with bb.tinfoil.Tinfoil() as tinfoil: |
106 | tinfoil.prepare(config_only=True) | 97 | tinfoil.prepare(config_only=True) |
@@ -136,7 +127,6 @@ class TinfoilTests(OESelftestTestCase): | |||
136 | self.assertTrue(commandcomplete, 'Timed out waiting for CommandCompleted event from bitbake server') | 127 | self.assertTrue(commandcomplete, 'Timed out waiting for CommandCompleted event from bitbake server') |
137 | self.assertTrue(eventreceived, 'Did not receive FilesMatchingFound event from bitbake server') | 128 | self.assertTrue(eventreceived, 'Did not receive FilesMatchingFound event from bitbake server') |
138 | 129 | ||
139 | @OETestID(1576) | ||
140 | def test_setvariable_clean(self): | 130 | def test_setvariable_clean(self): |
141 | # First check that setVariable affects the datastore | 131 | # First check that setVariable affects the datastore |
142 | with bb.tinfoil.Tinfoil() as tinfoil: | 132 | with bb.tinfoil.Tinfoil() as tinfoil: |
@@ -159,7 +149,6 @@ class TinfoilTests(OESelftestTestCase): | |||
159 | value = tinfoil.run_command('getVariable', 'TESTVAR') | 149 | value = tinfoil.run_command('getVariable', 'TESTVAR') |
160 | self.assertEqual(value, 'specialvalue', 'Value set using config_data.setVar() is not reflected in config_data.getVar()') | 150 | self.assertEqual(value, 'specialvalue', 'Value set using config_data.setVar() is not reflected in config_data.getVar()') |
161 | 151 | ||
162 | @OETestID(1884) | ||
163 | def test_datastore_operations(self): | 152 | def test_datastore_operations(self): |
164 | with bb.tinfoil.Tinfoil() as tinfoil: | 153 | with bb.tinfoil.Tinfoil() as tinfoil: |
165 | tinfoil.prepare(config_only=True) | 154 | tinfoil.prepare(config_only=True) |