All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] ci: fix results being sent while patchwork.sh exit 1
@ 2025-04-24  9:50 Andrea Cervesato
  2025-04-24 10:33 ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Cervesato @ 2025-04-24  9:50 UTC (permalink / raw)
  To: ltp

From: Andrea Cervesato <andrea.cervesato@suse.com>

Fix a logic issue related to 'patchwork.sh check' command, that is
setting a exit code to 1 when curl command success, causing GitHub CI to
recognize the build as failed.

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
 ci/tools/patchwork.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ci/tools/patchwork.sh b/ci/tools/patchwork.sh
index 25d65a2a77d193d5150ba6537b0c6e90e54b7fb5..83ef0bb2206277c36bb38845e356625c67ac7d97 100755
--- a/ci/tools/patchwork.sh
+++ b/ci/tools/patchwork.sh
@@ -158,7 +158,7 @@ send_results() {
                         -F "description=$result" \
                         "$PATCHWORK_URL/api/patches/$patch_id/checks/"
 
-                [ $? -eq 0 ] && exit 1
+                [ $? -eq 0 ] || exit 1
         done
 }
 

---
base-commit: 80fd2d673bc0fd8514190a061219c24933b6f03f
change-id: 20250424-fix_ci_results_pipeline-86ed61fd56ea

Best regards,
-- 
Andrea Cervesato <andrea.cervesato@suse.com>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-24 11:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-24  9:50 [LTP] [PATCH] ci: fix results being sent while patchwork.sh exit 1 Andrea Cervesato
2025-04-24 10:33 ` Petr Vorel
2025-04-24 11:18   ` Andrea Cervesato via ltp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.