From 96750a7d3c52b75d13d6f3ed46bd48af28acebcd Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 16 Jun 2016 21:56:23 +0200 Subject: tests: exit with correct error code from TestMain extpass_test and example_filesystems_test did it wrong, always returning 0. --- tests/example_filesystems/example_filesystems_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/example_filesystems') diff --git a/tests/example_filesystems/example_filesystems_test.go b/tests/example_filesystems/example_filesystems_test.go index 7517bc5..e20fc94 100644 --- a/tests/example_filesystems/example_filesystems_test.go +++ b/tests/example_filesystems/example_filesystems_test.go @@ -15,7 +15,7 @@ const statusTxtContent = "It works!\n" func TestMain(m *testing.M) { test_helpers.ResetTmpDir(true) - m.Run() + os.Exit(m.Run()) } // checkExampleFS - verify that "dir" contains the expected test files -- cgit v1.2.3