Skip to content

Commit 97da602

Browse files
committed
CI: Debug environment
1 parent ef964a4 commit 97da602

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/tests.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@ jobs:
4646
pip install --editable=.[test]
4747
postroj --version
4848
49+
- name: Debug environment
50+
run: |
51+
sudo --preserve-env python -c 'import json, os; print(json.dumps(dict(os.environ), indent=2))'
52+
4953
- name: Run tests
5054
# FIXME: Can this be run without elevated privileges?
5155
run: |
52-
sudo $(command -v pytest)
56+
sudo --preserve-env $(command -v pytest)
5357
coverage xml --omit postroj/winrunner.py
5458
5559
- name: Upload coverage results to Codecov

testing/racker/test_run_windows.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212

1313

1414
if "rackerhost-debian11" in socket.gethostname():
15-
pytest.skip("Nested virtualization with VT-x not working on developer's workstation", allow_module_level=True)
15+
pytest.skip("Nested virtualization with VT-x fails on developer's macOS workstation", allow_module_level=True)
1616

17-
if "GITHUB_ACTIONS" in os.environ:
17+
GITHUB_ACTIONS = os.environ.get("GITHUB_ACTIONS") in ('True', 'true')
18+
if GITHUB_ACTIONS:
1819
pytest.skip("Installing the Vagrant filesystem image for Windows "
1920
"takes too much disk space on GitHub Actions", allow_module_level=True)
2021

0 commit comments

Comments
 (0)