hakyll icon indicating copy to clipboard operation
hakyll copied to clipboard

Test failed on WSL : unixFilter error

Open kaznak opened this issue 7 years ago • 1 comments

I have tried to build hakyll on WSL and it have passed through, but one test is failed. I am afraid some trouble while using this binary and want to fix this problem. Do you know anything about this problem?

The source code is the current head of the master branch, commit 0fbc0487aa89295d1d0df4bda6a85e27c5159c37. And the system environment is Bash on Ubuntu on Windows.

Compilation and test command is below.

stack build stack test

and the report of failed test is below.

Hakyll.Core.UnixFilter.Tests unixFilter rev: OK (0.83s) unixFilter false: OK (0.13s) unixFilter error: FAIL (3.87s) tests/Hakyll/Core/UnixFilter/Tests.hs:70: expected: True but got: False

Thank you.

kaznak avatar Jan 28 '18 09:01 kaznak

For me unixFilter.error fails because the test expects "head" to return a string that contains "option" substring, but for my locale it's not the case:

head -#
head: неверный ключ — «#»
По команде «head --help» можно получить дополнительную информацию.

If we force LANGUAGE=en test passes as expected:

$ LANGUAGE=en head -#
head: invalid option -- '#'
Try 'head --help' for more information

trofi avatar Jul 06 '20 18:07 trofi