bug 468447 - Nonfatal "NMAKE : fatal error U1052: file 'makefile.sub' not found" in every single log masks real errors in failure logs. r=bsmedberg
authorTed Mielczarek <ted.mielczarek@gmail.com>
Mon, 11 May 2009 15:54:39 -0400
changeset 29239 2e1cacdcdd165c626ba94feeb96f4bccb23b4da6
parent 29238 5eafaafb7491c502d419170e22cc858762eb084b
child 29240 4faed2de45ad748933d24055ff7fedc106af544f
push id7503
push usertmielczarek@mozilla.com
push dateMon, 15 Jun 2009 14:25:44 +0000
treeherdermozilla-central@4faed2de45ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs468447
milestone1.9.2a1pre
bug 468447 - Nonfatal "NMAKE : fatal error U1052: file 'makefile.sub' not found" in every single log masks real errors in failure logs. r=bsmedberg
memory/jemalloc/build-crt.py
--- a/memory/jemalloc/build-crt.py
+++ b/memory/jemalloc/build-crt.py
@@ -1,8 +1,20 @@
 #!/usr/bin/env python
 
 import os, sys
+from subprocess import Popen, STDOUT, PIPE
 
 if 'MAKEFLAGS' in os.environ:
   del os.environ['MAKEFLAGS']
-os.chdir(sys.argv[1])
-sys.exit(os.system('nmake dll_ mt'))
+proc = Popen(['nmake', 'dll_', 'mt'], stdout=PIPE, stderr=STDOUT,
+             cwd=sys.argv[1])
+
+while True:
+  line = proc.stdout.readline()
+  if line == '':
+    break
+  line = line.rstrip()
+  # explicitly ignore this fatal-sounding non-fatal error
+  if line == "NMAKE : fatal error U1052: file 'makefile.sub' not found" or line == "Stop.":
+    continue
+  print line
+sys.exit(proc.wait())