mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 21:32:12 +02:00
bitbake: tests/fetch: Improve the verbose messages for skipped tests
This changes: test_foo .. skipped 'Network tests being skipped' test_foo .. skipped 'npm not installed, tests being skipped' to: test_foo .. skipped 'network test' test_foo .. skipped 'npm not installed' to avoid double "skipped" in the output. (Bitbake rev: e551328a4595c220b94ab5002d978ddb4deeebcf) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
803aff8136
commit
c1117a8eaa
@@ -18,7 +18,7 @@ from bb.tests.support.httpserver import HTTPService
|
||||
|
||||
def skipIfNoNetwork():
|
||||
if os.environ.get("BB_SKIP_NETTESTS") == "yes":
|
||||
return unittest.skip("Network tests being skipped")
|
||||
return unittest.skip("network test")
|
||||
return lambda f: f
|
||||
|
||||
class URITest(unittest.TestCase):
|
||||
@@ -2301,7 +2301,7 @@ class NPMTest(FetcherTest):
|
||||
def skipIfNoNpm():
|
||||
import shutil
|
||||
if not shutil.which('npm'):
|
||||
return unittest.skip('npm not installed, tests being skipped')
|
||||
return unittest.skip('npm not installed')
|
||||
return lambda f: f
|
||||
|
||||
@skipIfNoNpm()
|
||||
|
||||
Reference in New Issue
Block a user