Skip to content

Commit

Permalink
Implemented suggestion from @julianstirling to fix CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwright committed Aug 23, 2024
1 parent 98deaf6 commit e606186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install nimble packages and dev tools
run: |
pip install .[dev]
pip install -e .[dev]
- name: Run tests
run: |
Expand Down
11 changes: 1 addition & 10 deletions tests/test_orchestration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
import os

def test_cadorchestrator_command_line():
"""
Expand All @@ -16,16 +15,8 @@ def test_cadorchestrator_command_line():
if os.path.exists(build_dir):
shutil.rmtree(build_dir)

if "PYTHONPATH" in os.environ:
py_path = os.getcwd() + ":" + os.environ["PYTHONPATH"]
else:
py_path = None

# Run the cadorchestrator with the test configuration file
if py_path == None:
result = subprocess.run(["cadorchestrator", "generate", "[\"NUC10i5FNH\", \"Raspberry_Pi_4B\", \"Raspberry_Pi_4B\"]"])
else:
result = subprocess.run(["cadorchestrator", "generate", "[\"NUC10i5FNH\", \"Raspberry_Pi_4B\", \"Raspberry_Pi_4B\"]"], env=dict(PYTHONPATH=py_path))
result = subprocess.run(["cadorchestrator", "generate", "[\"NUC10i5FNH\", \"Raspberry_Pi_4B\", \"Raspberry_Pi_4B\"]"])

# Make sure that the command ran successfully
assert result.returncode == 0
Expand Down

0 comments on commit e606186

Please sign in to comment.