Bug 1386588 - Always print out the commands run by the clang build job. r=gps,a=KWierso
Not doing so makes debugging harder, for no added value.
This commit is contained in:
@@ -18,8 +18,6 @@ from contextlib import contextmanager
|
||||
import sys
|
||||
import which
|
||||
|
||||
DEBUG = os.getenv("DEBUG")
|
||||
|
||||
|
||||
def symlink(source, link_name):
|
||||
os_symlink = getattr(os, "symlink", None)
|
||||
@@ -32,8 +30,6 @@ def symlink(source, link_name):
|
||||
|
||||
|
||||
def check_run(args):
|
||||
global DEBUG
|
||||
if DEBUG:
|
||||
print >> sys.stderr, ' '.join(args)
|
||||
r = subprocess.call(args)
|
||||
assert r == 0
|
||||
@@ -41,12 +37,9 @@ def check_run(args):
|
||||
|
||||
def run_in(path, args):
|
||||
d = os.getcwd()
|
||||
global DEBUG
|
||||
if DEBUG:
|
||||
print >> sys.stderr, 'cd "%s"' % path
|
||||
os.chdir(path)
|
||||
check_run(args)
|
||||
if DEBUG:
|
||||
print >> sys.stderr, 'cd "%s"' % d
|
||||
os.chdir(d)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user