From c10b10aa318eab8970c355493be29a71cd7483ab Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 30 Apr 2022 11:03:55 -0700 Subject: [PATCH] container: Show executed commands when setting up/running tests - This allows the user to understand the wrapper script and skip/adapt it when necessary. - Debug any issues with the script. - Maintain consistency with the philosophy of the rest of the container script. Signed-off-by: Sunil Mohan Adapa --- container | 2 ++ plinth/tests/functional/install.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/container b/container index 56c536868..172d8d651 100755 --- a/container +++ b/container @@ -180,6 +180,8 @@ exit 0 ''' SETUP_AND_RUN_TESTS_SCRIPT = ''' +set -x + BACKPORTS_SOURCES_LIST=/etc/apt/sources.list.d/freedombox2.list LDAPSCRIPTS_CONF=/etc/ldapscripts/freedombox-ldapscripts.conf diff --git a/plinth/tests/functional/install.sh b/plinth/tests/functional/install.sh index 846fa9b9c..484de4ac6 100755 --- a/plinth/tests/functional/install.sh +++ b/plinth/tests/functional/install.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -euo pipefail +set -xeuo pipefail IFS=$'\n\t' echo "Installing requirements"