Skip to content

Commit

Permalink
sudo with env
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 committed May 11, 2024
1 parent bee5fff commit 372c787
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/command2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Run Example
timeout-minutes: 60
run: |
sudo META1=redis META2=${{matrix.meta}} .github/scripts/command/random.sh test_run_examples
sudo -E META1=redis META2=${{matrix.meta}} .github/scripts/command/random.sh test_run_examples
- name: Remove unused software
run: |
Expand All @@ -103,7 +103,7 @@ jobs:
- name: Run All
timeout-minutes: 60
run: |
sudo LOG_LEVEL=WARNING META1=redis META2=${{matrix.meta}} .github/scripts/command/random.sh test_run_all
sudo -E LOG_LEVEL=WARNING META1=redis META2=${{matrix.meta}} .github/scripts/command/random.sh test_run_all
- name: Upload example database
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fsrand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
- name: Test
timeout-minutes: 120
run: |
sudo LOG_LEVEL=WARNING python3 .github/scripts/hypo/fs.py 2>&1 | tee fsrand.log
sudo -E LOG_LEVEL=WARNING python3 .github/scripts/hypo/fs.py 2>&1 | tee fsrand.log
exit ${PIPESTATUS[0]}
- name: Upload example database
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gateway2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Test with example
run: |
sudo python3 .github/scripts/hypo/s3_test.py
sudo -E python3 .github/scripts/hypo/s3_test.py
- name: Download example database
uses: dawidd6/[email protected]
Expand All @@ -110,10 +110,10 @@ jobs:
path: .hypothesis/examples
if_no_artifact_found: warn
workflow_conclusion: completed

- name: Test randomly
run: |
sudo LOG_LEVEL=WARNING python3 .github/scripts/hypo/s3.py
sudo -E LOG_LEVEL=WARNING python3 .github/scripts/hypo/s3.py
- name: Upload example database
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 372c787

Please sign in to comment.