Bug 1229154 - Launch 'eslint' with UNIX environment since 'eslint' is not a valid Win32 binary. r=gps
authorJared Wein <jwein@mozilla.com>
Tue, 01 Dec 2015 14:29:47 -0500
changeset 309155 c99b324d74a4064338e509a751b80c1aedb2a8b2
parent 309154 479af4805b1e7a16312e67194e6b70d065911a91
child 309156 4ab4683433287ca3f488825ab94b3499a086fbdb
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1229154
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1229154 - Launch 'eslint' with UNIX environment since 'eslint' is not a valid Win32 binary. r=gps
python/mach_commands.py
--- a/python/mach_commands.py
+++ b/python/mach_commands.py
@@ -213,16 +213,17 @@ class MachCommands(MachCommandBase):
             '--ext', ext,  # This keeps ext as a single argument.
         ] + args
         # Path must come after arguments.
         cmd_args += [path]
 
         return self.run_process(cmd_args,
             pass_thru=True,  # Allow user to run eslint interactively.
             ensure_exit_code=False,  # Don't throw on non-zero exit code.
+            require_unix_environment=True # eslint is not a valid Win32 binary.
         )
     def eslint_setup(self, update_only=False):
         """Ensure eslint is optimally configured.
 
         This command will inspect your eslint configuration and
         guide you through an interactive wizard helping you configure
         eslint for optimal use on Mozilla projects.
         """