hack/make: don't attempt to unmount non-existing daemon root-dir
Before:
DONE 2 tests in 12.272s
---> Making bundle: .integration-daemon-stop (in bundles/test-integration)
umount: bundles/test-integration/root: mountpoint not found
After:
DONE 2 tests in 14.650s
---> Making bundle: .integration-daemon-stop (in bundles/test-integration)
@@ -11,7 +11,9 @@ if [ ! "$(go env GOOS)" = 'windows' ]; then
echo >&2 "warning: PID $pid from $pidFile had a nonzero exit code"
fi
root=$(dirname "$pidFile")/root
+ if [ -d "$root" ]; then
umount "$root" || true
+ fi
done
if [ -z "$DOCKER_TEST_HOST" ]; then
