-
Notifications
You must be signed in to change notification settings - Fork 27
Fix test failure problem in non-English environment #44
Fix test failure problem in non-English environment #44
Conversation
Some additional explanations... Currently, A neg test "neg/t6289" is checked by a javac's error message. It depend locale of user's environment. It is necessary to fix a javac's error message to english. scala-partest/src/main/scala/scala/tools/partest/nest/Runner.scala Lines 170 to 171 in 047cb32
Unfortunately, the javac command does not. scala-partest/src/main/scala/scala/tools/partest/nest/Runner.scala Lines 104 to 120 in 1c78ce6
In current implementation, there is no smart way for passing options to javac that run for tests. Please fix this for contributors in outside of english language regions. |
@SethTisue Please review this pull request. |
@szeiger you've been up in partest recently, would you mind reviewing this one? |
joinPaths(outDir :: testClassPath) | ||
joinPaths(outDir :: testClassPath), | ||
"-J-Duser.language=en", | ||
"-J-Duser.country=us" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be US
. Language codes are lowercase, country codes are upper case (like in propertyOptions
in the same file)
@szeiger Thanks for reviewing. I fixed the mistake you point out |
Great, LGTM otherwise. Please squash the commits (no need to wait for the current build of the separate commit). |
0679fb5
to
b6725fd
Compare
@szeiger Thanks. I squashed the commits. |
Fix test failure problem in non-English environment
good catch — thank you for the fix! |
…oblem Fix test failure problem in non-English environment
…oblem Fix test failure problem in non-English environment
since the error messages are localized in such a environment