From 934422fc15a0c357bc600b68e0a64ebed2189c20 Mon Sep 17 00:00:00 2001 From: Marco Vedovati Date: Fri, 19 Jul 2019 17:15:23 +0200 Subject: [PATCH] tests: fix background job failure detection Distros with systemd / agent as init are not correctly enumerated. Signed-off-by: Marco Vedovati --- tests/test_images.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_images.sh b/tests/test_images.sh index 72b40c3066..afd301040f 100755 --- a/tests/test_images.sh +++ b/tests/test_images.sh @@ -547,7 +547,7 @@ test_distros() local marker=$(make print-ROOTFS_MARKER_SUFFIX) [ -z "$marker" ] && die "Invalid rootfs marker" typeset -a completed=($(find ${tmp_rootfs} -name ".*${marker}" -exec basename {} \; | sed -E "s/\.(.+)${marker}/\1/")) - for d in "${distrosSystemd[@]} ${distrosAgent[@]}"; do + for d in "${distrosSystemd[@]}" "${distrosAgent[@]}"; do if [[ "${completed[@]}" =~ $d ]]; then info "- $d : completed" else