Skip to content

Commit

Permalink
Better logging in E2E tests. (#133)
Browse files Browse the repository at this point in the history
* Better pytest logging.

* Also log errors.

* Better flag.

* Pull the branch changes.
  • Loading branch information
kkeroo authored Nov 18, 2024
1 parent d738aa5 commit 45e910a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Run Test
run: |
CMD="hil --testbed ${{ github.event.inputs.testbed }} --reservation-name 'depthai_nodes_ml_team' --commands 'cd /home/hil/depthai-nodes' 'git checkout main' 'git pull' 'git checkout ${{ github.event.inputs.branch }}' 'source venv/bin/activate' 'cd tests/end_to_end' 'source <(python setup_camera_ips.py)' 'export HUBAI_TEAM_ID=${{ secrets.HUBAI_TEAM_ID }}' 'export HUBAI_API_KEY=${{ secrets.HUBAI_API_KEY }}' 'python main.py ${{ github.event.inputs.additional-parameter }}' 'deactivate'"
CMD="hil --testbed ${{ github.event.inputs.testbed }} --reservation-name 'depthai_nodes_ml_team' --commands 'cd /home/hil/depthai-nodes' 'git checkout main' 'git pull' 'git checkout ${{ github.event.inputs.branch }}' 'git pull' 'source venv/bin/activate' 'cd tests/end_to_end' 'source <(python setup_camera_ips.py)' 'export HUBAI_TEAM_ID=${{ secrets.HUBAI_TEAM_ID }}' 'export HUBAI_API_KEY=${{ secrets.HUBAI_API_KEY }}' 'python main.py ${{ github.event.inputs.additional-parameter }}' 'deactivate'"
eval $CMD
- name: Stop WireGuard
Expand Down
6 changes: 6 additions & 0 deletions tests/end_to_end/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def main():
f"--platform={rvc_platform}",
"-v",
"--tb=no",
"-r a",
"--log-cli-level=DEBUG",
"--color=yes",
]

if slug:
Expand All @@ -79,6 +82,9 @@ def main():
f"--platform={rvc_platform}",
"-v",
"--tb=no",
"-r a",
"--log-cli-level=DEBUG",
"--color=yes",
]

exit_code = pytest.main(command)
Expand Down

0 comments on commit 45e910a

Please sign in to comment.