File tree Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,7 @@ addopts = "-ra --showlocals --durations=10 -p no:pytest-ansible"
328
328
cache_dir = " ./.cache/.pytest"
329
329
log_cli = true
330
330
log_cli_level = " WARNING"
331
+ showlocals = true
331
332
testpaths = " tests"
332
333
tmp_path_retention_policy = " failed"
333
334
verbosity_assertions = 2
Original file line number Diff line number Diff line change @@ -345,11 +345,14 @@ def get_nav_default_ee_in_container() -> str:
345
345
str: The default ee for navigator in the container.
346
346
"""
347
347
cmd = (
348
- 'python -c "from ansible_navigator.utils.packaged_data import ImageEntry;'
348
+ 'python3 -c "from ansible_navigator.utils.packaged_data import ImageEntry;'
349
349
'print(ImageEntry.DEFAULT_EE.get(app_name=\\ "ansible_navigator\\ "))"'
350
350
)
351
351
352
352
proc = _exec_container (cmd )
353
+ if proc .returncode != 0 :
354
+ err = f"Failed to get default ee for navigator in container:\n { proc .stderr } \n { proc .stdout } "
355
+ pytest .fail (err )
353
356
return proc .stdout .strip ()
354
357
355
358
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ cp tools/setup-image.sh final/
65
65
$BUILD_CMD -f final/Containerfile final/ --tag " ${CONTAINER_NAME} "
66
66
67
67
# Check container size and layers
68
- mk containers check $CONTAINER_NAME --engine=" ${ADT_CONTAINER_ENGINE} " --max-size=1430 --max-layers=22
68
+ mk containers check $CONTAINER_NAME --engine=" ${ADT_CONTAINER_ENGINE} " --max-size=1500 --max-layers=22
69
69
70
70
pytest -v --only-container --container-engine=docker --image-name " ${CONTAINER_NAME} "
71
71
# -k test_navigator_simple
Original file line number Diff line number Diff line change @@ -133,18 +133,10 @@ allowlist_externals =
133
133
description = Build devspaces container image for current architecture
134
134
skip_install = true
135
135
deps =
136
+ -r .config/requirements-test.in
136
137
mk
137
138
commands_pre =
138
139
commands =
139
- ./tools/devspaces.sh
140
+ ./tools/devspaces.sh {posargs}
140
141
allowlist_externals =
141
142
./tools/devspaces.sh
142
-
143
- [testenv:test-ee]
144
- description =
145
- Run tests in the ee container image
146
- commands_pre =
147
- commands =
148
- pytest --only-container {posargs}
149
- allowlist_externals =
150
- pytest
You can’t perform that action at this time.
0 commit comments