FAFT: Remove firmware_ShellBall
am: ccc6188abb

Change-Id: I41be618f12b076beaaef11b4b52558ab137445bb
diff --git a/server/site_tests/firmware_ShellBall/control b/server/site_tests/firmware_ShellBall/control
deleted file mode 100644
index f4fc6e9..0000000
--- a/server/site_tests/firmware_ShellBall/control
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from autotest_lib.server import utils
-
-AUTHOR = "Chrome OS Team"
-NAME = "firmware_ShellBall"
-TIME = "SHORT"
-TEST_CATEGORY = "Functional"
-TEST_CLASS = "firmware"
-TEST_TYPE = "server"
-
-DOC = """
-chromeos-firmwareupdate functional testing.
-
-This script first copies shellball to DUT and runs all functional tests.
-
-Syntax:
-   ./test_that --board=<BOARD> <IP> -a "xml_config=<xml_config_file>
-   shellball_path=<shellball_directory> shellball_name=<shellball_name>
-   servo_serial=<serial number>" firmware_ShellBall/control
-"""
-from autotest_lib.client.common_lib import error
-
-# Convert autoserv args to something usable.
-opts = dict([[k, v] for (k, _, v) in [x.partition('=') for x in args]])
-
-args_dict = utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
-def run_shellball(machine):
-    # Verify bios path arg.
-    if 'shellball_path' and 'shellball_name' not in opts:
-        raise error.TestFail('Invalid shellball information.')
-    # Setup the client machine.
-    host = hosts.create_host(machine, servo_args=servo_args)
-    job.run_test("firmware_ShellBall", host=host,
-                 cmdline_args=args,
-                 shellball_path=opts['shellball_path'],
-                 shellball_name=opts['shellball_name'],
-                 disable_sysinfo=True)
-
-parallel_simple(run_shellball, machines)
diff --git a/server/site_tests/firmware_ShellBall/firmware_ShellBall.py b/server/site_tests/firmware_ShellBall/firmware_ShellBall.py
deleted file mode 100644
index ad1774a..0000000
--- a/server/site_tests/firmware_ShellBall/firmware_ShellBall.py
+++ /dev/null
@@ -1,99 +0,0 @@
-# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import logging
-import os
-
-from autotest_lib.server.cros.faft.firmware_test import FirmwareTest
-
-
-class firmware_ShellBall(FirmwareTest):
-    """
-    chromeos-firmwareupdate functional tests.
-
-    Checks the mode condition and enables or disables developement mode
-    accordingly and runs all shellball functioanl tests.
-    """
-    version = 1
-
-    _shellball_name = None
-
-    def update_firmware(self, mode):
-        self.faft_client.system.run_shell_command('%s --mode %s' %
-                                                  (self._shellball_name, mode))
-        # Enalbe dev mode if the mode is todev.
-        if mode == 'todev':
-            self.servo.enable_development_mode()
-        # Disable dev mode if the mode is tonormal.
-        elif mode == 'tonormal':
-            self.servo.disable_development_mode()
-
-    def install_original_firmware(self):
-        self.faft_client.system.run_shell_command(
-            'sudo chromeos-firmwareupdate --mode=factory_install')
-        self.invalidate_firmware_setup()
-
-    def initialize(self, host, cmdline_args, shellball_path=None,
-                   shellball_name=None):
-        super(firmware_ShellBall, self).initialize(host, cmdline_args)
-        self._shellball_name = "/home/chronos/%s" % self._shellball_name
-        host.send_file("%s/%s" % (shellball_path, shellball_name),
-                       self._shellball_name)
-        self.faft_client.system.run_shell_command('chmod +x %s' %
-                                                  self._shellball_name)
-        self.switcher.setup_mode('normal')
-        # Get crossystem fwid.
-        [self._current_fwid] = (
-            self.faft_client.system.run_shell_command_get_output(
-                'crossystem fwid'))
-        # Get BIOS version from shellball.
-        [self._shellball_fwid] = self.faft_client. \
-                                        system.run_shell_command_get_output(
-                                            '%s -V | grep "BIOS version"'
-                                            ' | sed "s/BIOS version: '
-                                            '\(.*\)/\\1/" '
-                                            % self._shellball_name)
-
-    def cleanup(self):
-        try:
-            if os.path.exists(self._shellball_name):
-                os.remove(self._shellball_name)
-        except Exception as e:
-            logging.error("Caught exception: %s", str(e))
-        super(firmware_ShellBall, self).cleanup()
-
-    def run_once(self):
-        logging.info("Change to devmode.")
-        self.check_state((self.checkers.crossystem_checker,
-                          {'dev_boot_usb': '0'}))
-        self.update_firmware('todev')
-        self.switcher.mode_aware_reboot()
-
-        logging.info("Check mainfw_type and run autoupdate.")
-        self.check_state((self.checkers.crossystem_checker,
-                          {'mainfw_type': 'developer'}))
-        self.update_firmware('autoupdate')
-        self.switcher.mode_aware_reboot()
-
-        logging.info("Verify fwid and install system firmware.")
-        self.check_state((self.checkers.crossystem_checker,
-                          {'fwid': self._shellball_fwid}))
-        self.install_original_firmware()
-        self.switcher.mode_aware_reboot()
-
-        logging.info("Verify the old firmware id and test factory_install.")
-        self.check_state((self.checkers.crossystem_checker,
-                          {'fwid': self._current_fwid}))
-        self.update_firmware('factory_install')
-        self.switcher.mode_aware_reboot()
-
-        logging.info("Verify fwid and install original firmware.")
-        self.check_state((self.checkers.crossystem_checker,
-                          {'fwid': self._shellball_fwid}))
-        self.install_original_firmware()
-        self.switcher.mode_aware_reboot()
-
-        logging.info("Verify old fwid.")
-        self.check_state((self.checkers.crossystem_checker,
-                          {'fwid': self._current_fwid}))