From a55e53c196be73fbf06cef00c50f10752aaf1275 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 16 Dec 2018 12:33:25 +0100 Subject: [PATCH] tests: fix TestPassfileNewline Due to a copy-paste error, we ran the wrong test in the subprocess. Thanks @slackner for noticing at https://github.com/rfjakob/gocryptfs/commit/295d432175292dbaef572093d784aab55f5c0b8f#r31690478 ! --- internal/readpassword/passfile_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/readpassword/passfile_test.go b/internal/readpassword/passfile_test.go index 457170b..30f976f 100644 --- a/internal/readpassword/passfile_test.go +++ b/internal/readpassword/passfile_test.go @@ -51,7 +51,7 @@ func TestPassfileNewline(t *testing.T) { readPassFile("passfile_test_files/newline.txt") return } - cmd := exec.Command(os.Args[0], "-test.run=TestPassfileEmpty$") + cmd := exec.Command(os.Args[0], "-test.run=TestPassfileNewline$") cmd.Env = append(os.Environ(), "TEST_SLAVE=1") err := cmd.Run() if err != nil {