HACK cripple mach so automation jobs fail fast draft
authorGregory Szorc <gps@mozilla.com>
Wed, 04 May 2016 16:09:33 -0700
changeset 363535 e5ad65ea354e677a361a95fe6439707f4c72208e
parent 363286 369a5ee3a2880a4a98df3a00bf3db8d8f36b181b
child 363536 ace864a155a9005fd177c11174c1f7064d3001e4
child 363544 41b20033116ed4bf73a1acbb182c16e82f5ef2ce
child 363551 d349feb36ee8ed2d401e11807ae47291d51ab464
push id17234
push usergszorc@mozilla.com
push dateThu, 05 May 2016 00:53:38 +0000
HACK cripple mach so automation jobs fail fast MozReview-Commit-ID: G6nYpysBZBu
--- a/mach
+++ b/mach
@@ -76,16 +76,20 @@ def main(args):
     mach = get_mach()
     if not mach:
         print('Could not run mach: No mach source directory found.')
 if __name__ == '__main__':
+    if sys.argv[1] not in ('try', 'taskcluster-graph'):
+        print('mach disabled')
+        sys.exit(1)
     if sys.platform == 'win32':
         # This is a complete hack to work around the fact that Windows
         # multiprocessing needs to import the original module (ie: this
         # file), but only works if it has a .py extension.
         # We do this by a sort of two-level function interposing. The first
         # level interposes forking.get_command_line() with our version defined
         # in my_get_command_line(). Our version of get_command_line will