mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-08 12:07:40 +00:00
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>
14 lines
257 B
Bash
Executable File
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
|