From 56ea63cec61024c7dfcc9550079a12a288cbbb3d Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 31 Aug 2025 12:04:18 +0000 Subject: [PATCH] fix(test): fix CI?? Signed-off-by: Xe Iaso --- test/git-clone/test.sh | 4 +++- test/git-push/test.sh | 4 +++- test/healthcheck/test.sh | 4 +++- test/lib/lib.sh | 2 ++ test/palemoon/amd64/test.sh | 2 ++ 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/test/git-clone/test.sh b/test/git-clone/test.sh index 3e716e4c..130e6a5c 100755 --- a/test/git-clone/test.sh +++ b/test/git-clone/test.sh @@ -20,4 +20,6 @@ docker compose up -d sleep 2 -(cd ./var/clones && git clone http://localhost:8005/status.git) \ No newline at end of file +(cd ./var/clones && git clone http://localhost:8005/status.git) + +exit 0 \ No newline at end of file diff --git a/test/git-push/test.sh b/test/git-push/test.sh index fbbdd610..a6d5f97c 100755 --- a/test/git-push/test.sh +++ b/test/git-push/test.sh @@ -31,4 +31,6 @@ sleep 2 git config user.email "social+anubis-ci@techaro.lol" && \ git commit -sm "initial commit" && \ git push -u http://localhost:3000/git/foo.git master -) \ No newline at end of file +) + +exit 0 \ No newline at end of file diff --git a/test/healthcheck/test.sh b/test/healthcheck/test.sh index cd50d1c0..f357ff9a 100755 --- a/test/healthcheck/test.sh +++ b/test/healthcheck/test.sh @@ -25,4 +25,6 @@ while ! docker compose ps | grep healthy; do sleep $delay delay=$(( delay * 2 )) attempt=$(( attempt + 1 )) -done \ No newline at end of file +done + +exit 0 \ No newline at end of file diff --git a/test/lib/lib.sh b/test/lib/lib.sh index 2fc0b11b..132848ac 100644 --- a/test/lib/lib.sh +++ b/test/lib/lib.sh @@ -2,6 +2,8 @@ REPO_ROOT=$(git rev-parse --show-toplevel) (cd $REPO_ROOT && go install ./utils/cmd/...) function cleanup() { + set +e + pkill -P $$ if [ -f "docker-compose.yaml" ]; then diff --git a/test/palemoon/amd64/test.sh b/test/palemoon/amd64/test.sh index 3a0ccbed..7f85186f 100755 --- a/test/palemoon/amd64/test.sh +++ b/test/palemoon/amd64/test.sh @@ -34,3 +34,5 @@ go run ../../cmd/cipra/ --compose-name $(basename $(pwd)) docker compose down -t 1 || : docker compose rm -f || : + +exit 0