Skip to content

Commit

Permalink
test: wait for partition device rather than the whole disk
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwata authored and bluca committed May 20, 2024
1 parent 30633af commit fe816c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/units/TEST-58-REPART.sh
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ EOF
# shellcheck disable=SC2064
trap "rm -rf '$defs' '$imgs' ; losetup -d '$loop'" RETURN ERR

udevadm wait --timeout 60 --settle "${loop:?}"
udevadm wait --timeout 60 --settle "${loop:?}p1" "${loop:?}p2"

# Check that the verity block sizes are as expected
veritysetup dump "${loop}p2" | grep 'Data block size:' | grep -q '4096'
Expand Down Expand Up @@ -1026,7 +1026,7 @@ EOF
fi

loop=$(losetup -P --show -f "$imgs/zzz")
udevadm wait --timeout 60 --settle "${loop:?}"
udevadm wait --timeout 60 --settle "${loop:?}p1" "${loop:?}p2"

# Test that /usr/def did not end up in the root partition but other files did.
mkdir "$imgs/mnt"
Expand Down

0 comments on commit fe816c2

Please sign in to comment.