aboutsummaryrefslogtreecommitdiff
path: root/tests/example_filesystems/example_test_helpers.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-03-05 13:39:25 +0100
committerJakob Unterwurzacher2017-03-05 13:39:25 +0100
commitb2f154a9a908e6ec097de90c04ce45118adc76de (patch)
tree65f6ee0810df685353a5d67c71dad199e97a027f /tests/example_filesystems/example_test_helpers.go
parent6465fa42a695160f2ce1f0c3ace3799f1bbf6227 (diff)
tests: stop calling t.Fatal from example_test_helpers
Calling t.Fatal immeadiately aborts the test, which means the filesystem will not get unmounted, which means test.bash will hang.
Diffstat (limited to 'tests/example_filesystems/example_test_helpers.go')
-rw-r--r--tests/example_filesystems/example_test_helpers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/example_filesystems/example_test_helpers.go b/tests/example_filesystems/example_test_helpers.go
index d89b35f..672b668 100644
--- a/tests/example_filesystems/example_test_helpers.go
+++ b/tests/example_filesystems/example_test_helpers.go
@@ -68,7 +68,8 @@ func checkExampleFSrw(t *testing.T, dir string, rw bool) {
"xxxxxxxxxxxxxxxxxxxxxxxx"
contentBytes, err := ioutil.ReadFile(filepath.Join(dir, longname))
if err != nil {
- t.Fatal(err)
+ t.Error(err)
+ return
}
content := string(contentBytes)
if content != statusTxtContent {