From 5c1463313d5de675ccdf654a339dca33a8609534 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Sat, 1 Sep 2018 17:22:49 +0200 Subject: [PATCH] respect localized output of rmdir --- pkg/commands/os_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/commands/os_test.go b/pkg/commands/os_test.go index a7ccef560..f73b78d47 100644 --- a/pkg/commands/os_test.go +++ b/pkg/commands/os_test.go @@ -29,7 +29,7 @@ func TestOSCommandRunCommandWithOutput(t *testing.T) { { "rmdir unexisting-folder", func(output string, err error) { - assert.Regexp(t, ".*No such file or directory.*", err.Error()) + assert.Regexp(t, "rmdir: .* 'unexisting-folder': .*", err.Error()) }, }, } @@ -49,7 +49,7 @@ func TestOSCommandRunCommand(t *testing.T) { { "rmdir unexisting-folder", func(err error) { - assert.Regexp(t, ".*No such file or directory.*", err.Error()) + assert.Regexp(t, "rmdir: .* 'unexisting-folder': .*", err.Error()) }, }, }