From 365068d7633bb9b6c907aad4e2c5cc04de132693 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sat, 22 Oct 2022 19:37:51 +0200 Subject: [PATCH] tests/run-tests.sh: print examples before running This eases debugging example failures. --- test/run-tests.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test/run-tests.sh b/test/run-tests.sh index 637a032..8075cbb 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -305,13 +305,14 @@ buildable() { } examples() { - script=" + script=' set -e - ./deploy-container.sh - ./deploy-container-minimal.sh - ./deploy-qemu-vm.sh - ./deploy-krops.sh - " + runExample() { echo; echo Running example $1; ./$1; } + runExample deploy-container.sh + runExample deploy-container-minimal.sh + runExample deploy-qemu-vm.sh + runExample deploy-krops.sh + ' (cd "$scriptDir/../examples" && nix-shell --run "$script") }