]> code.ossystems Code Review - openembedded-core.git/commitdiff
selftest/recipetool: Fix test for krogoth
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 May 2017 13:21:31 +0000 (14:21 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 May 2017 14:07:11 +0000 (15:07 +0100)
This test was backported and doesn't function quite the same way under
krogoth since some of the extended python license checking wasn't yet
added. This tweaks the output to match the expected result in krogoth.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/recipetool.py

index 2cccf2b21b3c3a60fac395179b1f29c2fdd8772a..5cae8a7dbfe8b324aeb70ea3174864f66605e1bb 100644 (file)
@@ -451,7 +451,7 @@ class RecipetoolTests(RecipetoolBase):
         result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri))
         self.assertTrue(os.path.isfile(recipefile))
         checkvars = {}
-        checkvars['LICENSE'] = set(['Apache-2.0'])
+        checkvars['LICENSE'] = set(['Apache-2.0', 'Unknown'])
         checkvars['SRC_URI'] = 'git://github.com/mesonbuild/meson;protocol=https'
         inherits = ['setuptools']
         self._test_recipe_contents(recipefile, checkvars, inherits)