mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 09:32:13 +02:00
selftest: skip npm tests if nodejs-native isn't available
The tests are actually skipped if meta-oe isn't present which isn't quite the same thing, but hopefully close enough. (From OE-Core rev: d22ed015d8f38241acb783e1a468fb15d4317670) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
197cec77f5
commit
961de02fd1
@@ -520,6 +520,10 @@ class DevtoolAddTests(DevtoolBase):
|
||||
self._test_recipe_contents(recipefile, checkvars, [])
|
||||
|
||||
def test_devtool_add_npm(self):
|
||||
collections = get_bb_var('BBFILE_COLLECTIONS').split()
|
||||
if "openembedded-layer" not in collections:
|
||||
self.skipTest("Test needs meta-oe for nodejs")
|
||||
|
||||
pn = 'savoirfairelinux-node-server-example'
|
||||
pv = '1.0.0'
|
||||
url = 'npm://registry.npmjs.org;package=@savoirfairelinux/node-server-example;version=' + pv
|
||||
|
||||
@@ -409,6 +409,10 @@ class RecipetoolTests(RecipetoolBase):
|
||||
self._test_recipe_contents(recipefile, checkvars, inherits)
|
||||
|
||||
def test_recipetool_create_npm(self):
|
||||
collections = get_bb_var('BBFILE_COLLECTIONS').split()
|
||||
if "openembedded-layer" not in collections:
|
||||
self.skipTest("Test needs meta-oe for nodejs")
|
||||
|
||||
temprecipe = os.path.join(self.tempdir, 'recipe')
|
||||
os.makedirs(temprecipe)
|
||||
recipefile = os.path.join(temprecipe, 'savoirfairelinux-node-server-example_1.0.0.bb')
|
||||
|
||||
Reference in New Issue
Block a user