From 9435ed2c8430162851538064ca7f03df3b210755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Tue, 13 Aug 2024 10:00:11 +0200 Subject: [PATCH] tests: Enable bash debug in "run-local.sh" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit with bash debug output we can easily tell what part of CI hanged or failed. Signed-off-by: Lukáš Doktor --- tests/e2e/run-local.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/e2e/run-local.sh b/tests/e2e/run-local.sh index fe407d4d..756bd663 100755 --- a/tests/e2e/run-local.sh +++ b/tests/e2e/run-local.sh @@ -60,12 +60,12 @@ undo_changes() { # Do not try to undo steps that did not execute. if [ $step_install_operator -eq 1 ]; then echo "::info:: Uninstall the operator" - run 10m sudo -E PATH="$PATH" bash -c './operator.sh uninstall' || true + run 10m sudo -E PATH="$PATH" bash -xc './operator.sh uninstall' || true fi if [ $step_start_cluster -eq 1 ]; then echo "::info:: Shutdown the cluster" - run 5m sudo -E PATH="$PATH" bash -c './cluster/down.sh' || true + run 5m sudo -E PATH="$PATH" bash -xc './cluster/down.sh' || true fi if [ $step_bootstrap_env -eq 1 ]; then @@ -106,19 +106,19 @@ main() { echo "::info:: Bring up the test cluster" step_start_cluster=1 - run 10m sudo -E PATH="$PATH" bash -c './cluster/up.sh' + run 10m sudo -E PATH="$PATH" bash -xc './cluster/up.sh' export KUBECONFIG=/etc/kubernetes/admin.conf echo "::info:: Build and install the operator" step_install_operator=1 - run 20m sudo -E PATH="$PATH" bash -c './operator.sh' + run 20m sudo -E PATH="$PATH" bash -xc './operator.sh' echo "::info:: Run tests" local cmd="run 20m sudo -E PATH=\"$PATH\" bash -c " if [ -z "$runtimeclass" ]; then - cmd+="'./tests_runner.sh'" + cmd+="'bash -x ./tests_runner.sh'" else - cmd+="'./tests_runner.sh -r $runtimeclass'" + cmd+="'bash -x ./tests_runner.sh -r $runtimeclass'" fi eval $cmd popd >/dev/null