[Android] Remove few redundent pieces added in CL 17114007

This CL removes certain redundant pieces which should have been removed in https://chromiumcodereview.appspot.com/17114007/ but were missed.

BUG=249997

Review URL: https://chromiumcodereview.appspot.com/18595002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209932 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
sivachandra@chromium.org 2013-07-03 08:49:47 +00:00
Родитель 195fba9143
Коммит 41aae7d2a7
1 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -78,7 +78,7 @@ def GetEnvironment(host_obj, testing):
return env
def GetCommands(options, bot_config, host_step_script, device_step_script):
def GetCommands(options, bot_config):
"""Get a formatted list of commands.
Args:
@ -90,13 +90,13 @@ def GetCommands(options, bot_config, host_step_script, device_step_script):
list of Command objects.
"""
property_args = bb_utils.EncodeProperties(options)
commands = [[host_step_script,
commands = [[bot_config.host_obj.script,
'--steps=%s' % ','.join(bot_config.host_obj.host_steps)] +
property_args + (bot_config.host_obj.extra_args or [])]
test_obj = bot_config.test_obj
if test_obj:
run_test_cmd = [device_step_script, '--reboot'] + property_args
run_test_cmd = [test_obj.script, '--reboot'] + property_args
for test in test_obj.tests:
run_test_cmd.extend(['-f', test])
if test_obj.extra_args:
@ -226,10 +226,7 @@ def main(argv):
print 'Using config:', bot_config
commands = GetCommands(
options, bot_config,
'build/android/buildbot/bb_host_steps.py',
'build/android/buildbot/bb_device_steps.py')
commands = GetCommands(options, bot_config)
for command in commands:
print 'Will run: ', bb_utils.CommandToString(command)
print