Skip to content

Commit

Permalink
Fix build on system using a language other than English.
Browse files Browse the repository at this point in the history
When you build ovirt-engine on a system where a language other than
English is setted, Maven Surefire uses it a default language and select
MessageBundles according to this, making some tests fail.

This commit set English and US explicitly as default language and
country in the POM, allowing Surefire to pick the right properties files
during tests.

Bug-URL: https://bugzilla.redhat.com/show_bug.cgi?id=2120066
  • Loading branch information
yasalos authored and mwperina committed Aug 22, 2022
1 parent 79c53cd commit f999802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@
</dependencies>
<configuration>
<reportsDirectory>${ovirt.surefire.reportsDirectory}</reportsDirectory>
<argLine>--illegal-access=permit</argLine>
<argLine>--illegal-access=permit -Duser.country=US -Duser.language=en</argLine>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit f999802

Please sign in to comment.