From 151f2527a13c8ce5d1083122d420ee0508fd8223 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Thu, 28 Oct 2021 10:26:28 +0200
Subject: [PATCH] L2SS-466: Debug CI: Output logs of device-sdp

---
 sbin/run_integration_test.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sbin/run_integration_test.sh b/sbin/run_integration_test.sh
index 785875f9f..440cfe550 100755
--- a/sbin/run_integration_test.sh
+++ b/sbin/run_integration_test.sh
@@ -1,4 +1,4 @@
-#!/bin/bash -e
+#!/bin/bash
 
 if [ -z "$LOFAR20_DIR" ]; then
     # We assume we aren't in the PATH, so we can derive our path.
@@ -43,3 +43,9 @@ sleep 60
 
 # Run the integration test with the output displayed on stdout
 docker start -a "${CONTAINER_NAME_PREFIX}"integration-test
+TEST_RESULT=$?
+
+# Print logs in case of problems
+docker logs "${CONTAINER_NAME_PREFIX}"device-sdp
+
+exit $TEST_RESULT
-- 
GitLab