diff options
| author | kumvijaya <kumvijaya@gmail.com> | 2026-01-09 11:25:59 +0530 |
|---|---|---|
| committer | kumvijaya <kumvijaya@gmail.com> | 2026-01-09 11:25:59 +0530 |
| commit | 1009e5bc083f29790da4b36c9c83c825c5ac813c (patch) | |
| tree | cc5c94f24edc7650fedc812802b15936775c49cc /.github/workflows | |
| parent | 0185e380bf849888d7d01dcf4fce5dd48abbae70 (diff) | |
| download | vyos-1x-1009e5bc083f29790da4b36c9c83c825c5ac813c.tar.gz vyos-1x-1009e5bc083f29790da4b36c9c83c825c5ac813c.zip | |
T8144: smoke test workflow updated to report its jobs status as-is
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: |
