瀏覽代碼

Attempt to exit test containers on tests exit while also showing test output.

Dan Helfman 1 年之前
父節點
當前提交
5f16b64639
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 0 1
      .gitea/workflows/test.yaml
  2. 3 2
      scripts/run-end-to-end-tests

+ 0 - 1
.gitea/workflows/test.yaml

@@ -9,4 +9,3 @@ jobs:
     steps:
       - uses: actions/checkout@v4
       - run: scripts/run-end-to-end-tests
-      - run: find . -name borgmatic-1.8.9.dev0

+ 3 - 2
scripts/run-end-to-end-tests

@@ -8,7 +8,7 @@
 # For more information, see:
 # https://torsion.org/borgmatic/docs/how-to/develop-on-borgmatic/
 
-set -e
+set -ex
 
 USER_PODMAN_SOCKET_PATH=/run/user/$UID/podman/podman.sock
 
@@ -17,5 +17,6 @@ if [ -e "$USER_PODMAN_SOCKET_PATH" ]; then
 fi
 
 docker-compose --file tests/end-to-end/docker-compose.yaml up --force-recreate \
-    --renew-anon-volumes --detach
+    --renew-anon-volumes &
 docker-compose --file tests/end-to-end/docker-compose.yaml wait --down-project tests
+find . -name borgmatic-1.8.9.dev0