Yet another fix in low-level scripts involving command_executer changes.
Fixed run_tests.py.
Also added options in the nightly client for debugging it. It can use a local p4 checkout instead of creating a new client for faster iteration.
PRESUBMIT=passed
R=raymes,bjanakiraman
DELTA=46 (22 added, 14 deleted, 10 changed)
OCL=45701-p2
RCL=45709-p2
RDATE=2010/12/08 17:00:37
P4 change: 42606965
diff --git a/v14/build_chromeos.py b/v14/build_chromeos.py
index f4b12f0..3968a91 100755
--- a/v14/build_chromeos.py
+++ b/v14/build_chromeos.py
@@ -18,8 +18,6 @@
from utils import logger
from utils import utils
-cmd_executer = None
-
def Usage(parser, message):
print "ERROR: " + message
@@ -51,7 +49,7 @@
if clobber_chroot:
clobber_chroot = "--replace"
commands.append("./make_chroot --fast " + clobber_chroot)
- ret = cmd_executer.RunCommands(commands)
+ ret = command_executer.GetCommandExecuter().RunCommands(commands)
utils.AssertTrue(ret == 0, "make_chroot failed")
else:
logger.GetLogger().LogOutput("Did not make_chroot because it already exists")
@@ -60,7 +58,6 @@
def Main(argv):
"""Build ChromeOS."""
# Common initializations
- global cmd_executer
cmd_executer = command_executer.GetCommandExecuter()
parser = optparse.OptionParser()