This follows Chris Sosa's recent announcement that run_remote_tests.sh will only
 work from inside the chroot.
 This change runs the underlying shell script from inside the chroot.
  Also removed bvt from the default tests.

PRESUBMIT=passed
R=raymes,bjanakiraman
DELTA=13  (4 added, 0 deleted, 9 changed)
OCL=50742-p2
RCL=50791-p2
RDATE=2011/03/30 10:31:08


P4 change: 42621956
diff --git a/v14/run_tests.py b/v14/run_tests.py
index 391920e..6485090 100755
--- a/v14/run_tests.py
+++ b/v14/run_tests.py
@@ -15,6 +15,8 @@
 import sys
 from utils import command_executer
 from utils import logger
+from utils import utils
+import build_chromeos
 
 
 def Main(argv):
@@ -27,10 +29,10 @@
   parser.add_option("-b", "--board", dest="board",
                     help="The board of the target.")
 
-  tests = "bvt"
-
   (options, args) = parser.parse_args(argv)
 
+  tests = ""
+
   if options.board is None or options.remote is None:
     parser.print_help()
     return -1
@@ -58,14 +60,16 @@
 
 def RunRemoteTests(chromeos_root, remote, board, tests):
   """Run the remote tests."""
-  command = (chromeos_root + "/src/scripts/run_remote_tests.sh" +
-             " --remote=" + remote +
-             " --board=" + board +
-             " " + tests)
-
-  retval = command_executer.GetCommandExecuter().RunCommand(command)
+  command = ("./run_remote_tests.sh"
+             " --remote=%s"
+             " --board=%s"
+             " %s" %
+             (remote,
+              board,
+              tests))
+  retval = build_chromeos.ExecuteCommandInChroot(chromeos_root, command)
   return retval
 
 if __name__ == "__main__":
   retval = Main(sys.argv)
-  sys.exit(retval)
+  utils.ExitWithCode(retval)