From 22a88c0e489b2b4abc6480d5690196fa5c217948 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 1 Aug 2017 20:29:13 +0200 Subject: [PATCH] Drop unmount logic from test.sh Unmounting leftover mounts is a convenience function for developers, but it would need to be expanded to work on MacOS and FreeBSD, which adds more complexity. Let's keep test.sh at the bare minimum that is needed for its purpose: running the tests. --- test.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/test.sh b/test.sh index eb9f17f..66b4b14 100755 --- a/test.sh +++ b/test.sh @@ -1,16 +1,8 @@ -#!/bin/bash -eu +#!/bin/bash -eux # Make sure we are in the directory this script is in. cd "$(dirname "$0")" -# Failed tests can leave dangling mounts behind. -for i in $(mount | grep -e "/tmp/encfs-reverse-tests-\|/tmp/encfs-tests-" | cut -f3 -d" "); do - echo "Warning: unmounting leftover filesystem: $i" - fusermount -u $i || true -done - -set -x - # This is very noisy so run it silently at first. Run it again with # output if the first run fails. ./build/checkops &> /dev/null || ./build/checkops