icatproject / icat.utils

Setup scripts and a few useful bits of Java code.
Other
0 stars 2 forks source link

Test failures if a non-english locale is set #4

Closed RKrahl closed 7 years ago

RKrahl commented 7 years ago

The test suite fails if a non-english locale is set. For instance, if LANG is set to de_DE.UTF-8, testBadDate() and testBadDateFromList() fail because they expect stderr to start with date: invalid date, but get date: ungültiges Datum. testWibble() fails because it expects Cannot run program "wibble": error=2, No such file or directory but gets Cannot run program "wibble": error=2, Datei oder Verzeichnis nicht gefunden.

This PR removes the locale sensitive bits from the expected error output in the tests.