Skip to content

Commit

Permalink
Fix issue with running tests as a root
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubrak committed Oct 15, 2024
1 parent 328e254 commit 32cd7f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/run-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ runs:
- name: Prepare component tests
id: prepare-component-tests
shell: bash
run: python -m virtualenv venv && source venv/bin/activate &&
run: python -m virtualenv roles/oneagent/tests/component/venv &&
source roles/oneagent/tests/component/venv/bin/activate &&
pip install -r roles/oneagent/tests/component/resources/requirements.txt
- name: Run component tests
id: component-tests
shell: bash
run: source venv/bin/activate && cd roles/oneagent/tests/component &&
sudo python run.py --linux_x86=localhost
run: cd roles/oneagent/tests/component &&
sudo bash -c "source venv/bin/activate python run.py --linux_x86=localhost"
- name: Upload logs
uses: actions/upload-artifact@v4
if: ${{ always() }}
Expand Down

0 comments on commit 32cd7f7

Please sign in to comment.