Procházet zdrojové kódy

hack: add more debugging to understand exit codepath

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit b280ea114f0210afcd50936808e0653cfacfe16a)
Signed-off-by: Tibor Vass <tibor@docker.com>
Tibor Vass před 5 roky
rodič
revize
d4e12315cd
2 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 1 1
      Jenkinsfile
  2. 2 0
      hack/make/test-integration

+ 1 - 1
Jenkinsfile

@@ -275,6 +275,7 @@ pipeline {
                                 sh '''#!/bin/bash
                                 # bash is needed so 'jobs -p' works properly
                                 # it also accepts setting inline envvars for functions without explicitly exporting
+                                set -x
 
                                 run_tests() {
                                         [ -n "$TESTDEBUG" ] && rm= || rm=--rm;
@@ -324,7 +325,6 @@ pipeline {
                                 # integration-cli second set
                                 TEST_INTEGRATION_DEST=3 CONTAINER_NAME=${CONTAINER_NAME}-3 TEST_SKIP_INTEGRATION=1 TESTFLAGS="-test.run Test(DockerSwarmSuite|DockerDaemonSuite|DockerExternalVolumeSuite)/" run_tests &
 
-                                set +x
                                 c=0
                                 for job in $(jobs -p); do
                                         wait ${job} || c=$?

+ 2 - 0
hack/make/test-integration

@@ -22,6 +22,8 @@ fi
 	cleanup_test_suite_binaries
 	error_on_leaked_containerd_shims
 
+	echo exiting test-integration
+	set -x
 	exit ${testexit}
 
 ) 2>&1 | tee -a "$DEST/test.log"