Skip to content

Commit

Permalink
common: simplify pmem_test_procedure for Python-based tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Michalski <jan.michalski@intel.com>
  • Loading branch information
janekmi committed Aug 21, 2023
1 parent c993a86 commit 61e8d3a
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 61e8d3a

Please sign in to comment.