aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-07-11 20:40:53 +0200
committerJakob Unterwurzacher2016-07-11 20:41:53 +0200
commitdf17f1d702bea709228b9923a8ed2fc19005ba43 (patch)
treebeedbd8f26f8f4264558c86e8ecd699238062287
parent1c54fcd04bbf274dd5d4300e433bdcb1bb32e1ce (diff)
tests: add verbose output when unmounting
-rw-r--r--tests/example_filesystems/example_filesystems_test.go2
-rw-r--r--tests/test_helpers/helpers.go3
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/example_filesystems/example_filesystems_test.go b/tests/example_filesystems/example_filesystems_test.go
index e38d3e6..8b01555 100644
--- a/tests/example_filesystems/example_filesystems_test.go
+++ b/tests/example_filesystems/example_filesystems_test.go
@@ -24,7 +24,7 @@ func TestMain(m *testing.M) {
flag.Parse()
for _, opensslOpt = range []string{"-openssl=false", "-openssl=true"} {
if testing.Verbose() {
- fmt.Printf("TestMain: testing with %q\n", opensslOpt)
+ fmt.Printf("example_filesystems: testing with %q\n", opensslOpt)
}
test_helpers.ResetTmpDir(true)
r := m.Run()
diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go
index b42adcd..bad5675 100644
--- a/tests/test_helpers/helpers.go
+++ b/tests/test_helpers/helpers.go
@@ -49,6 +49,9 @@ func ResetTmpDir(plaintextNames bool) {
d := filepath.Join(TmpDir, e.Name())
err = os.Remove(d)
if err != nil {
+ if testing.Verbose() {
+ fmt.Printf("%v, trying umount\n", d, err)
+ }
UnmountErr(d)
err = os.RemoveAll(d)
if err != nil {