Skip to content

Commit

Permalink
Merge pull request pmem#5869 from pmem/workflow-python-simplify
Browse files Browse the repository at this point in the history
common: simplify pmem_test_procedure for Python-based tests
  • Loading branch information
janekmi authored Aug 22, 2023
2 parents cd199dd + 2c0b7cd commit bcaab45
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/actions/pmem_test_procedure/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,10 @@ runs:
shell: bash

- name: Run tests (Python)
if: inputs.test_label == ''
working-directory: src/test
run: ./RUNTESTS.py -b ${{ inputs.build }}
shell: bash

- name: Run tests (Python) (test_label=${{ inputs.test_label }})
if: inputs.test_label != ''
working-directory: src/test
run: ./RUNTESTS.py
-b ${{ inputs.build }} --test-label ${{ inputs.test_label }}
run: |
cmd="./RUNTESTS.py -b ${{ inputs.build }}";
[ "${{ inputs.test_label }}" != "" ] &&
cmd="$cmd --test-label ${{ inputs.test_label }}";
bash -c "$cmd"
shell: bash

0 comments on commit bcaab45

Please sign in to comment.