Cleanup loop devices after test failure

Cleans up loop devices if part of the test or mount process fails.

Also increases btrfs default file size to 650MB to accommodate
minimum btrfs size on ppc64le and s390x

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
This commit is contained in:
Christopher Jones
2018-01-23 15:27:16 -05:00
parent 051ac5dd63
commit a8c5ff57e5
6 changed files with 13 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
#
# Downloads and installs protobuf
#
set -eux -o pipefail
set -eu -o pipefail
PROTOBUF_VERSION=3.5.1
GOARCH=$(go env GOARCH)

View File

@@ -3,7 +3,7 @@
# Builds and installs runc to /usr/local/go/bin based off
# the commit defined in vendor.conf
#
set -eux -o pipefail
set -eu -o pipefail
RUNC_COMMIT=$(grep opencontainers/runc ${GOPATH}/src/github.com/containerd/containerd/vendor.conf | cut -d " " -f 2)