diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/package-smoketest.yml | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/.github/workflows/package-smoketest.yml b/.github/workflows/package-smoketest.yml index db2a0e58d..6c933f93f 100644 --- a/.github/workflows/package-smoketest.yml +++ b/.github/workflows/package-smoketest.yml @@ -175,11 +175,11 @@ jobs: id: test shell: bash run: | - sudo make ${{ needs.set_config.outputs.test_cli_command }} && EXIT_CODE=0 || EXIT_CODE=$? - if [[ $EXIT_CODE == 0 ]]; then + if sudo make ${{ needs.set_config.outputs.test_cli_command }}; then echo "exit_code=success" >> $GITHUB_OUTPUT else echo "exit_code=fail" >> $GITHUB_OUTPUT + exit 1 fi test_smoketest_cli_vpp: @@ -209,11 +209,11 @@ jobs: id: test shell: bash run: | - sudo make test-vpp && EXIT_CODE=0 || EXIT_CODE=$? - if [[ $EXIT_CODE == 0 ]]; then + if sudo make test-vpp; then echo "exit_code=success" >> $GITHUB_OUTPUT else echo "exit_code=fail" >> $GITHUB_OUTPUT + exit 1 fi test_interfaces_cli: @@ -242,11 +242,11 @@ jobs: id: test shell: bash run: | - sudo make test-interfaces && EXIT_CODE=0 || EXIT_CODE=$? - if [[ $EXIT_CODE == 0 ]]; then + if sudo make test-interfaces; then echo "exit_code=success" >> $GITHUB_OUTPUT else echo "exit_code=fail" >> $GITHUB_OUTPUT + exit 1 fi test_config_load: @@ -275,11 +275,11 @@ jobs: id: test shell: bash run: | - sudo make testc && EXIT_CODE=0 || EXIT_CODE=$? - if [[ $EXIT_CODE == 0 ]]; then + if sudo make testc; then echo "exit_code=success" >> $GITHUB_OUTPUT else echo "exit_code=fail" >> $GITHUB_OUTPUT + exit 1 fi test_config_load_vpp: @@ -309,11 +309,11 @@ jobs: id: test shell: bash run: | - sudo make testcvpp && EXIT_CODE=0 || EXIT_CODE=$? - if [[ $EXIT_CODE == 0 ]]; then + if sudo make testcvpp; then echo "exit_code=success" >> $GITHUB_OUTPUT else echo "exit_code=fail" >> $GITHUB_OUTPUT + exit 1 fi test_raid1_install: @@ -342,11 +342,11 @@ jobs: id: test shell: bash run: | - sudo make testraid && EXIT_CODE=0 || EXIT_CODE=$? - if [[ $EXIT_CODE == 0 ]]; then + if sudo make testraid; then echo "exit_code=success" >> $GITHUB_OUTPUT else echo "exit_code=fail" >> $GITHUB_OUTPUT + exit 1 fi test_encrypted_config_tpm: @@ -376,11 +376,11 @@ jobs: id: test shell: bash run: | - sudo make testtpm && EXIT_CODE=0 || EXIT_CODE=$? - if [[ $EXIT_CODE == 0 ]]; then + if sudo make testtpm; then echo "exit_code=success" >> $GITHUB_OUTPUT else echo "exit_code=fail" >> $GITHUB_OUTPUT + exit 1 fi result: |
