From 9407a5752250c83f5565fa43ab294e2d7c47be41 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 9 Oct 2019 12:55:25 +0200 Subject: [PATCH] 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) Signed-off-by: Sebastiaan van Stijn --- hack/make/.integration-daemon-stop | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/make/.integration-daemon-stop b/hack/make/.integration-daemon-stop index 63f7f361b4..4f7c8acb8e 100644 --- a/hack/make/.integration-daemon-stop +++ b/hack/make/.integration-daemon-stop @@ -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 - umount "$root" || true + if [ -d "$root" ]; then + umount "$root" || true + fi done if [ -z "$DOCKER_TEST_HOST" ]; then