summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@78cadc50-ecff-11dd-a971-7dbc132099af>2014-06-11 13:34:24 +0000
committermark@chromium.org <mark@chromium.org@78cadc50-ecff-11dd-a971-7dbc132099af>2014-06-11 13:34:24 +0000
commit0c9a7aa9446f9a51985c481fd4775245a6263cf2 (patch)
tree7964666c7b2211fb34693988e21a7e36982be815
parent018065bdc1a6da9356c0e4556631346fb83527b0 (diff)
downloadgyp-0c9a7aa9446f9a51985c481fd4775245a6263cf2.tar.gz
Override the user's language settings during tests
If a user's language is set to anything other than English, the output of various tools may vary from what is expected and cause tests to fail. This fixes several test failures for non-English users. To reproduce the issue, run: LC_ALL=de_DE.UTF-8 ./gyptest.py -a Patch by Joey Parrish <joeyparrish@google.com> Review URL: https://codereview.chromium.org/324893007/ git-svn-id: http://gyp.googlecode.com/svn/trunk@1932 78cadc50-ecff-11dd-a971-7dbc132099af
-rw-r--r--test/lib/TestGyp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lib/TestGyp.py b/test/lib/TestGyp.py
index cde04cac..119417d1 100644
--- a/test/lib/TestGyp.py
+++ b/test/lib/TestGyp.py
@@ -151,6 +151,9 @@ class TestGypBase(TestCommon.TestCommon):
# Clear $GYP_DEFINES for the same reason.
if 'GYP_DEFINES' in os.environ:
del os.environ['GYP_DEFINES']
+ # Override the user's language settings, which could
+ # otherwise make the output vary from what is expected.
+ os.environ['LC_ALL'] = 'C'
def built_file_must_exist(self, name, type=None, **kw):
"""