Browse code

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 authored on 2020/05/27 23:29:00
Showing 2 changed files
... ...
@@ -275,6 +275,7 @@ pipeline {
275 275
                                 sh '''#!/bin/bash
276 276
                                 # bash is needed so 'jobs -p' works properly
277 277
                                 # it also accepts setting inline envvars for functions without explicitly exporting
278
+                                set -x
278 279
 
279 280
                                 run_tests() {
280 281
                                         [ -n "$TESTDEBUG" ] && rm= || rm=--rm;
... ...
@@ -324,7 +325,6 @@ pipeline {
324 324
                                 # integration-cli second set
325 325
                                 TEST_INTEGRATION_DEST=3 CONTAINER_NAME=${CONTAINER_NAME}-3 TEST_SKIP_INTEGRATION=1 TESTFLAGS="-test.run Test(DockerSwarmSuite|DockerDaemonSuite|DockerExternalVolumeSuite)/" run_tests &
326 326
 
327
-                                set +x
328 327
                                 c=0
329 328
                                 for job in $(jobs -p); do
330 329
                                         wait ${job} || c=$?
... ...
@@ -22,6 +22,8 @@ fi
22 22
 	cleanup_test_suite_binaries
23 23
 	error_on_leaked_containerd_shims
24 24
 
25
+	echo exiting test-integration
26
+	set -x
25 27
 	exit ${testexit}
26 28
 
27 29
 ) 2>&1 | tee -a "$DEST/test.log"