From 125a436d4957fb4cca45a19d84a389fa22286cf8 Mon Sep 17 00:00:00 2001 From: David Enyeart Date: Wed, 15 Mar 2023 11:04:06 -0400 Subject: [PATCH] Add debug logging to CI scripts Add debug logging to CI scripts. Signed-off-by: David Enyeart --- ci/scripts/run-test-network-basic.sh | 5 +++++ ci/scripts/run-test-network-gateway.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ci/scripts/run-test-network-basic.sh b/ci/scripts/run-test-network-basic.sh index fdc3d088..966bcc8a 100755 --- a/ci/scripts/run-test-network-basic.sh +++ b/ci/scripts/run-test-network-basic.sh @@ -30,6 +30,9 @@ function stopNetwork() { ./network.sh down } +# print all executed commands to assist with debug in CI environment +set -x + # Set up one test network to run each test scenario. # Each test will create an independent scope by installing a new chaincode contract to the channel. createNetwork @@ -77,3 +80,5 @@ popd stopNetwork + +{ set +x; } 2>/dev/null diff --git a/ci/scripts/run-test-network-gateway.sh b/ci/scripts/run-test-network-gateway.sh index 3b3def77..3174816a 100755 --- a/ci/scripts/run-test-network-gateway.sh +++ b/ci/scripts/run-test-network-gateway.sh @@ -30,6 +30,9 @@ function stopNetwork() { ./network.sh down } +# print all executed commands to assist with debug in CI environment +set -x + # Set up one test network to run each test scenario. # Each test will create an independent scope by installing a new chaincode contract to the channel. createNetwork @@ -69,3 +72,5 @@ popd stopNetwork + +{ set +x; } 2>/dev/null