diff --git a/tests/test_project.py b/tests/test_project.py index 1b9d77a..655e84a 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -16,7 +16,7 @@ from west.manifest import Manifest, ManifestProject, Project, \ from west.manifest import ImportFlag as MIF from conftest import create_branch, create_workspace, create_repo, \ add_commit, add_tag, check_output, cmd, GIT, rev_parse, \ - check_proj_consistency + check_proj_consistency, WINDOWS assert 'TOXTEMPDIR' in os.environ, "you must run these tests using tox" @@ -379,6 +379,16 @@ def test_forall(west_init_tmpdir): '=== running "echo foo" in net-tools (net-tools):', 'foo'] + # Use environment variables + + env_var = "%WEST_PROJECT_NAME%" if WINDOWS else "$WEST_PROJECT_NAME" + + assert cmd(f'forall -c "echo {env_var}"').splitlines() == [ + f'=== running "echo {env_var}" in manifest (zephyr):', + 'manifest', + f'=== running "echo {env_var}" in net-tools (net-tools):', + 'net-tools'] + cmd('update Kconfiglib') assert cmd('forall -c "echo foo"').splitlines() == [ '=== running "echo foo" in manifest (zephyr):',