summaryrefslogtreecommitdiff
path: root/tests/test_helpers
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-06-16 21:56:23 +0200
committerJakob Unterwurzacher2016-06-16 21:56:23 +0200
commit96750a7d3c52b75d13d6f3ed46bd48af28acebcd (patch)
treec635af442a00aaac8281c220216a608106d9128f /tests/test_helpers
parent82d87ff8eda1a8e43cda4a5f500fc579477ee606 (diff)
tests: exit with correct error code from TestMain
extpass_test and example_filesystems_test did it wrong, always returning 0.
Diffstat (limited to 'tests/test_helpers')
-rw-r--r--tests/test_helpers/helpers.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go
index c006e8b..04686c2 100644
--- a/tests/test_helpers/helpers.go
+++ b/tests/test_helpers/helpers.go
@@ -109,7 +109,11 @@ func Mount(c string, p string, extraArgs ...string) error {
cmd := exec.Command(GocryptfsBinary, args...)
cmd.Stderr = os.Stderr
- cmd.Stdout = os.Stdout
+ if testing.Verbose() {
+ // Don't show the "deprecated filesystem" warnings by default. These
+ // are not silenced by "-q".
+ cmd.Stdout = os.Stdout
+ }
return cmd.Run()
}