Skip to content

Commit

Permalink
Added bash -e to run inductor_xpu_test.sh in case of some error insid…
Browse files Browse the repository at this point in the history
…e of it

Signed-off-by: Gregory Shimansky <[email protected]>
  • Loading branch information
gshimansky committed Jul 1, 2024
1 parent 6150724 commit 0768aff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/e2e-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ jobs:
# otherwise test all models.
if [[ "${{ inputs.only_one_model }}" ]]; then
$GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0 ${{ inputs.only_one_model }}
bash -e $GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0 ${{ inputs.only_one_model }}
elif [[ "${{ needs.setup.outputs.models }}" == "subset" ]]; then
while read model; do
$GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0 $model
bash -e $GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0 $model
done < $GITHUB_WORKSPACE/.github/models/performance/${{ inputs.suite }}.txt
else
$GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0
bash -e $GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0
fi
- name: Report environment details
Expand Down

0 comments on commit 0768aff

Please sign in to comment.