Changed ExecuteCommandInChroot to take in extra parameters for additional
mount points.
Changed the order of parameters to the same function.
Changed build_tc.py to pass --oneshot all the way down to portage.
Changed tc_enter_chroot.py to take in toolchain_root as an optional parameter.
By default it only mounts the version_dir, which is where it resides.
Changed uses of ExecuteCommandInChroot to the new order.
Changed build_benchmarks.py to not take in toolchain_root. It now takes in
--third_party which is the third_party dir where CPU benchmarks reside.
Changed tc_enter_chroot.py to take in an optional --third_party parameter.
By default it mounts __file__/../../../third_party.
Changed build_chrome_browser.py to add a flags.txt file in the image dir.
Fixed a bug in tc_enter_chroot.py (sys.argv[0] was used instead of __file__).
Fixed handling of command line parameters of build_chrome_browser.py.
build_benchmarks.py, build_chrome_browser.py, run_tests.py and run_dejagnu.py
now use argv instead of sys.argv.
build_chromeos.py now adds a file called flags.txt in the build dir of
the image containing the cxxflags, cflags and ldflags used during the build.
build_chromeos.py now takes an additional optional argument (label) that can be
used to label dirs containing the image.
PRESUBMIT=passed
R=bjanakiraman,raymes
DELTA=191 (104 added, 16 deleted, 71 changed)
OCL=49844-p2
RCL=50076-p2
RDATE=2011/03/16 14:53:04
P4 change: 42618812
diff --git a/v14/run_tests.py b/v14/run_tests.py
index 67ee643..77e8c8f 100755
--- a/v14/run_tests.py
+++ b/v14/run_tests.py
@@ -16,7 +16,7 @@
from utils import command_executer
-def Main():
+def Main(argv):
"""The main function."""
parser = optparse.OptionParser()
parser.add_option("-c", "--chromeos_root", dest="chromeos_root",
@@ -28,7 +28,7 @@
tests = "bvt"
- (options, args) = parser.parse_args()
+ (options, args) = parser.parse_args(argv)
if options.board is None or options.remote is None:
parser.print_help()
@@ -58,4 +58,4 @@
return retval
if __name__ == "__main__":
- Main()
+ Main(sys.argv)