tests: fix background job failure detection

Distros with systemd / agent as init are not correctly enumerated.

Signed-off-by: Marco Vedovati <mvedovati@suse.com>
This commit is contained in:
Marco Vedovati 2019-07-19 17:15:23 +02:00
parent 317bfba4b1
commit 934422fc15

View File

@ -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