Skip to content

Commit

Permalink
fix xfs requirements
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Deitcher <avi@deitcher.net>
  • Loading branch information
deitch committed Jan 4, 2023
1 parent c10945e commit a7c1c2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/cases/040_packages/005_extend/002_xfs/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ function failed {

[ -f /var/lib/docker/bar ] || failed
touch /var/lib/docker/foo || failed
df -h | grep /var/lib/docker | grep -qE "[4-5][0-9]{2}\.[0-9]{1,}M" || failed
df -h | grep /var/lib/docker | grep -qE "[5-7][0-9]{2}\.[0-9]{1,}M" || failed
printf "extend test suite PASSED\n" >&1
6 changes: 3 additions & 3 deletions test/cases/040_packages/005_extend/002_xfs/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -ex
#. "${RT_LIB}"
. "${RT_PROJECT_ROOT}/_lib/lib.sh"

NAME_CREATE=extend-xfs
NAME_CREATE=create-xfs
NAME_EXTEND=extend-xfs
DISK=disk.img

Expand All @@ -20,11 +20,11 @@ trap clean_up EXIT

# Test code goes here
linuxkit build --name "${NAME_CREATE}" --format kernel+initrd test-create.yml
linuxkit run --disk file="${DISK}",format=raw,size=256M "${NAME_CREATE}"
linuxkit run --disk file="${DISK}",format=raw,size=512M "${NAME_CREATE}"
[ -f "${DISK}" ] || exit 1
# osx takes issue with bs=1M
dd if=/dev/zero bs=1048576 count=256 >> "${DISK}"
linuxkit build --format kernel+initrd --name ${NAME_EXTEND} test.yml
linuxkit build --name "${NAME_EXTEND}" --format kernel+initrd test.yml
RESULT="$(linuxkit run --disk file=${DISK} ${NAME_EXTEND})"
echo "${RESULT}"
echo "${RESULT}" | grep -q "suite PASSED"
Expand Down

0 comments on commit a7c1c2a

Please sign in to comment.