tests: remove WEST_SKIP_SLOW_TESTS
There's just one test that's being skipped this way, and it's not that slow compared to the rest. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
02444d0583
commit
8ef8a1c117
|
@ -39,8 +39,6 @@ manifest:
|
||||||
path: zephyr
|
path: zephyr
|
||||||
'''
|
'''
|
||||||
|
|
||||||
WEST_SKIP_SLOW_TESTS = bool(int(os.environ.get('WEST_SKIP_SLOW_TESTS', 1)))
|
|
||||||
|
|
||||||
WINDOWS = (platform.system() == 'Windows')
|
WINDOWS = (platform.system() == 'Windows')
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -26,8 +26,7 @@ from west.manifest import Manifest, Project, ManifestProject, \
|
||||||
_ManifestImportDepth, is_group
|
_ManifestImportDepth, is_group
|
||||||
|
|
||||||
from conftest import create_workspace, create_repo, checkout_branch, \
|
from conftest import create_workspace, create_repo, checkout_branch, \
|
||||||
create_branch, add_commit, rev_parse, GIT, check_proj_consistency, \
|
create_branch, add_commit, rev_parse, GIT, check_proj_consistency
|
||||||
WEST_SKIP_SLOW_TESTS
|
|
||||||
|
|
||||||
FPI = ImportFlag.FORCE_PROJECTS # to force project imports to use the callback
|
FPI = ImportFlag.FORCE_PROJECTS # to force project imports to use the callback
|
||||||
|
|
||||||
|
@ -2405,8 +2404,6 @@ def test_import_path_prefix_no_escape(manifest_repo):
|
||||||
MF(topdir=topdir, import_flags=ImportFlag.IGNORE)
|
MF(topdir=topdir, import_flags=ImportFlag.IGNORE)
|
||||||
assert 'escapes the workspace topdir' in str(excinfo.value)
|
assert 'escapes the workspace topdir' in str(excinfo.value)
|
||||||
|
|
||||||
@pytest.mark.skipif(WEST_SKIP_SLOW_TESTS,
|
|
||||||
reason='use WEST_SKIP_SLOW_TESTS=0 to enable')
|
|
||||||
def test_import_loop_detection_self(manifest_repo):
|
def test_import_loop_detection_self(manifest_repo):
|
||||||
# Verify that a self-import which causes an import loop is an error.
|
# Verify that a self-import which causes an import loop is an error.
|
||||||
|
|
||||||
|
|
1
tox.ini
1
tox.ini
|
@ -26,7 +26,6 @@ deps =
|
||||||
mypy
|
mypy
|
||||||
setenv =
|
setenv =
|
||||||
TOXTEMPDIR={envtmpdir}
|
TOXTEMPDIR={envtmpdir}
|
||||||
passenv = WEST_SKIP_SLOW_TESTS
|
|
||||||
commands =
|
commands =
|
||||||
python -m flake8 --config={toxinidir}/tox.ini {toxinidir}
|
python -m flake8 --config={toxinidir}/tox.ini {toxinidir}
|
||||||
python -m mypy --config-file={toxinidir}/tox.ini --package=west
|
python -m mypy --config-file={toxinidir}/tox.ini --package=west
|
||||||
|
|
Loading…
Reference in New Issue