From b0d050e80ca3dc23357c94caf12597681fbea3f7 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 21 Jun 2024 16:25:05 +0200 Subject: [PATCH] run_genimage_impl: abort for missing config file Otherwise, a missing config file is not detected for tests that are expected to fail. Signed-off-by: Michael Olbrich --- test/test-setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test-setup.sh b/test/test-setup.sh index 595cbdb..c8d15c0 100644 --- a/test/test-setup.sh +++ b/test/test-setup.sh @@ -26,6 +26,10 @@ setup_data() { } run_genimage_impl() { + if [ ! -e "${1}" ]; then + echo "ERROR: genimage config file '${1}' missing!" + return 130 + fi if [ "$verbose" = "t" ]; then vargs="--loglevel=3" fi