mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
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>
This commit is contained in:
parent
e17a12219a
commit
6aed51ca5c
@ -9,5 +9,5 @@ function failed {
|
||||
|
||||
[ -f /var/lib/docker/bar ] || failed
|
||||
touch /var/lib/docker/foo || failed
|
||||
df -h | grep -q "490.9M" || failed
|
||||
df -h | grep -qE "[4-5][0-9]{2}\.[0-9]{1,}M" || failed
|
||||
printf "extend test suite PASSED\n" >&1
|
||||
|
@ -9,5 +9,5 @@ function failed {
|
||||
|
||||
[ -f /var/lib/docker/bar ] || failed
|
||||
touch /var/lib/docker/foo || failed
|
||||
df -h | grep -q "511.0M" || failed
|
||||
df -h | grep -qE "[4-5][0-9]{2}\.[0-9]{1,}M" || failed
|
||||
printf "extend test suite PASSED\n" >&1
|
||||
|
@ -9,5 +9,5 @@ function failed {
|
||||
|
||||
[ -f /var/lib/docker/bar ] || failed
|
||||
touch /var/lib/docker/foo || failed
|
||||
df -h | grep -q "504.8M" || failed
|
||||
df -h | grep -qE "[4-5][0-9]{2}\.[0-9]{1,}M" || failed
|
||||
printf "extend test suite PASSED\n" >&1
|
||||
|
Loading…
Reference in New Issue
Block a user