Merge pull request #28149 from mrc0mmand/test-machinectl-bump-container-size
test: bump the test container size to 64 MiB
This commit is contained in:
@@ -89,7 +89,12 @@ run_subtests_with_signals() {
|
||||
: "--- $subtest BEGIN ---"
|
||||
"./$subtest" &
|
||||
_CHILD_PID=$!
|
||||
_wait_harder "$_CHILD_PID" && _PASSED_TESTS+=("$subtest") || return 1
|
||||
if ! _wait_harder "$_CHILD_PID"; then
|
||||
echo "Subtest $subtest failed"
|
||||
return 1
|
||||
fi
|
||||
|
||||
_PASSED_TESTS+=("$subtest")
|
||||
: "--- $subtest END ---"
|
||||
done
|
||||
|
||||
@@ -113,7 +118,12 @@ run_subtests() {
|
||||
fi
|
||||
|
||||
: "--- $subtest BEGIN ---"
|
||||
"./$subtest" && _PASSED_TESTS+=("$subtest") || return 1
|
||||
if ! "./$subtest"; then
|
||||
echo "Subtest $subtest failed"
|
||||
return 1
|
||||
fi
|
||||
|
||||
_PASSED_TESTS+=("$subtest")
|
||||
: "--- $subtest END ---"
|
||||
done
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ test ! -d /var/lib/machines/.hidden1
|
||||
|
||||
# Prepare a simple raw container
|
||||
mkdir -p /tmp/mnt
|
||||
dd if=/dev/zero of=/tmp/container.raw bs=1M count=32
|
||||
dd if=/dev/zero of=/tmp/container.raw bs=1M count=64
|
||||
mkfs.ext4 /tmp/container.raw
|
||||
mount -o loop /tmp/container.raw /tmp/mnt
|
||||
cp -r /var/lib/machines/container1/* /tmp/mnt
|
||||
|
||||
@@ -83,7 +83,7 @@ testcase_sanity() {
|
||||
create_dummy_container "$template"
|
||||
# Create a simple image from the just created container template
|
||||
image="$(mktemp /var/lib/machines/testsuite-13.image-XXX.img)"
|
||||
dd if=/dev/zero of="$image" bs=1M count=32
|
||||
dd if=/dev/zero of="$image" bs=1M count=64
|
||||
mkfs.ext4 "$image"
|
||||
mkdir -p /mnt
|
||||
mount -o loop "$image" /mnt
|
||||
|
||||
Reference in New Issue
Block a user