Files
linuxkit/test/cases/040_packages/005_extend/000_ext4/check.sh
Dave Tucker 6aed51ca5c tests: Remove hardcoded sizes from extend tests
In order to update these tests it required first running df -h to obtain
the new disk size and then adding that value to check.sh
This commit replaces the hardcoded values with a regex that checks that
the filesystem is somewhere between 400-599MB in size. Before being
extended this would have been somewhere in the region of 200-300MB.

Signed-off-by: Dave Tucker <dt@docker.com>
2017-08-08 13:47:32 +01:00

14 lines
257 B
Bash
Executable File

#!/bin/sh
set -x
function failed {
printf "extend test suite FAILED\n" >&1
exit 1
}
[ -f /var/lib/docker/bar ] || failed
touch /var/lib/docker/foo || failed
df -h | grep -qE "[4-5][0-9]{2}\.[0-9]{1,}M" || failed
printf "extend test suite PASSED\n" >&1