mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 17:22:33 +00:00
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:
parent
317bfba4b1
commit
934422fc15
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user