Delete defunct autotest tests

These tests have not been included in Chrome OS builds for a
while. They were not previously deleted due to a bug that results
in the CQ attempting to look for these control files for a few builds
after the tests were removed from the build.

BUG=chromium:1036772
TEST=None

Change-Id: I881688f602e7c8bafb7955a986833a1a5ce87b12
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1986204
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Auto-Submit: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Sean Abraham <seanabraham@chromium.org>
Commit-Queue: Sean Abraham <seanabraham@chromium.org>
diff --git a/client/site_tests/network_CheckCriticalProcesses/control b/client/site_tests/network_CheckCriticalProcesses/control
deleted file mode 100644
index 1fc48f3..0000000
--- a/client/site_tests/network_CheckCriticalProcesses/control
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright (c) 2013 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.
-
-AUTHOR = 'pstew, quiche, wiley'
-NAME = 'network_CheckCriticalProcesses'
-ATTRIBUTES = "suite:bvt-cq, suite:network_nightly, subsystem:network"
-TIME = 'SHORT'
-TEST_TYPE = 'client'
-JOB_RETRIES = 2
-
-DOC = """
-This test has a static list of process names that should be running
-on a good Chrome OS Core image with client networking (shill) support.
-It fails if any of these are not running at the time of the test.
-"""
-
-NETWORK_CRITICAL_PROCESSES = [
-    'dbus-daemon',
-     # dhcpcd expected for a test-lab DUT controlled via ethernet.
-    'dhcpcd',
-    'netfilter-queue|conntrackd',
-     # powerd expected as long as it controls set_wifi_transmit_power.
-    'powerd',
-    'shill',
-    'udevd|systemd-udevd',
-    'update_engine',
-    'wpa_supplicant',
-    ]
-
-job.run_test('platform_CheckCriticalProcesses',
-             process_list=NETWORK_CRITICAL_PROCESSES)
diff --git a/client/site_tests/platform_CheckDebugdProcesses/control b/client/site_tests/platform_CheckDebugdProcesses/control
deleted file mode 100644
index 1c8f647..0000000
--- a/client/site_tests/platform_CheckDebugdProcesses/control
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright 2014 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.
-
-AUTHOR = 'benchan, gauravsh'
-NAME = 'platform_CheckDebugdProcesses'
-ATTRIBUTES = "suite:bvt-cq"
-TIME = 'SHORT'
-TEST_TYPE = 'client'
-JOB_RETRIES = 2
-
-DOC = """
-This test has a static list of process names that should be running
-on a good Chrome OS Core image running with debugd support. It
-fails if any of these are not running at the time of the test.
-"""
-
-DEBUGD_PROCESSES = ['debugd']
-
-job.run_test('platform_CheckCriticalProcesses', process_list=DEBUGD_PROCESSES)
diff --git a/client/site_tests/platform_CheckMetricsProcesses/control b/client/site_tests/platform_CheckMetricsProcesses/control
deleted file mode 100644
index f266e09..0000000
--- a/client/site_tests/platform_CheckMetricsProcesses/control
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright 2014 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.
-
-AUTHOR = 'bsimonnet, gauravsh'
-NAME = 'platform_CheckMetricsProcesses'
-ATTRIBUTES = "suite:bvt-cq"
-TIME = 'SHORT'
-TEST_TYPE = 'client'
-JOB_RETRIES = 2
-
-DOC = """
-This test has a static list of process names that should be running
-on a good Chrome OS Core image with metrics reporter support. It
-fails if any of these are not running at the time of the test.
-"""
-
-METRICS_PROCESSES = ['metrics_daemon']
-
-job.run_test('platform_CheckCriticalProcesses', process_list=METRICS_PROCESSES)
diff --git a/client/site_tests/platform_CheckPowerdProcesses/control b/client/site_tests/platform_CheckPowerdProcesses/control
deleted file mode 100644
index 8b27538..0000000
--- a/client/site_tests/platform_CheckPowerdProcesses/control
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright 2014 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.
-
-AUTHOR = 'derat, gauravsh'
-NAME = 'platform_CheckPowerdProcesses'
-ATTRIBUTES = "suite:bvt-cq"
-TIME = 'SHORT'
-TEST_TYPE = 'client'
-JOB_RETRIES = 2
-
-DOC = """
-This test has a static list of process names that should be running
-on a good Chrome OS Core image with power management support. It
-fails if any of these are not running at the time of the test.
-"""
-
-POWERD_PROCESSES = ['powerd']
-
-job.run_test('platform_CheckCriticalProcesses', process_list=POWERD_PROCESSES)
diff --git a/client/site_tests/platform_CheckTLSDateProcesses/control b/client/site_tests/platform_CheckTLSDateProcesses/control
deleted file mode 100644
index f6ae405..0000000
--- a/client/site_tests/platform_CheckTLSDateProcesses/control
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright 2014 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.
-
-AUTHOR = 'drewry, gauravsh'
-NAME = 'platform_CheckTLSDateProcesses'
-ATTRIBUTES = "suite:bvt-cq"
-TIME = 'SHORT'
-TEST_TYPE = 'client'
-JOB_RETRIES = 2
-
-DOC = """
-This test has a static list of process names that should be running
-on a good Chrome OS Core image running with network time support. It
-fails if any of these are not running at the time of the test.
-"""
-
-TLSDATE_PROCESSES = ['tlsdated']
-
-job.run_test('platform_CheckCriticalProcesses', process_list=TLSDATE_PROCESSES)
diff --git a/client/site_tests/platform_RootPartitionsNotMounted/control b/client/site_tests/platform_RootPartitionsNotMounted/control
deleted file mode 100644
index 232201b..0000000
--- a/client/site_tests/platform_RootPartitionsNotMounted/control
+++ /dev/null
@@ -1,27 +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.
-
-AUTHOR = "Chrome OS Team"
-NAME = "platform_RootPartitionsNotMounted"
-PURPOSE = """
-Verify that the root partitions are not mounted by processes other than
-update-engine.
-"""
-CRITERIA = """
-This test will fail if a root partition is mounted by a process other than
-update-engine.
-"""
-ATTRIBUTES = "suite:bvt-cq"
-TIME = "SHORT"
-TEST_CATEGORY = "Functional"
-TEST_CLASS = "platform"
-TEST_TYPE = "client"
-JOB_RETRIES = 2
-
-DOC = """
-This test checks that the root partitions are not mounted by processes other
-than update-engine.
-"""
-
-job.run_test('platform_RootPartitionsNotMounted')
diff --git a/client/site_tests/platform_RootPartitionsNotMounted/platform_RootPartitionsNotMounted.py b/client/site_tests/platform_RootPartitionsNotMounted/platform_RootPartitionsNotMounted.py
deleted file mode 100644
index 1ebdce0..0000000
--- a/client/site_tests/platform_RootPartitionsNotMounted/platform_RootPartitionsNotMounted.py
+++ /dev/null
@@ -1,122 +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.client.bin import utils as bin_utils
-from autotest_lib.client.bin import test
-from autotest_lib.client.common_lib import error, utils
-
-class platform_RootPartitionsNotMounted(test.test):
-    version = 1
-
-    _CGPT_PATH = '/usr/bin/cgpt'
-    _ROOTDEV_PATH = '/usr/bin/rootdev'
-    _UPDATE_ENGINE_PATH = '/usr/sbin/update_engine'
-
-    def get_root_partitions(self, device):
-        """Gets a list of root partitions of a device.
-
-        Gets a list of root partitions of a device by calling
-        `cgpt find -t rootfs <device>`.
-
-        Args:
-            device: The device, specified by its device file, to examine.
-
-        Returns:
-            A list of root partitions, specified by their device file,
-            (e.g. /dev/sda1) of the given device.
-        """
-        cgpt_command = '%s find -t rootfs %s' % (self._CGPT_PATH, device)
-        return utils.run(cgpt_command).stdout.strip('\n').split('\n')
-
-    def get_mounted_devices(self, mounts_file):
-        """Gets a set of mounted devices from a given mounts file.
-
-        Gets a set of device files that are currently mounted. This method
-        parses a given mounts file (e.g. /proc/<pid>/mounts) and extracts the
-        entries with a source path under /dev/.
-
-        Returns:
-            A set of device file names (e.g. /dev/sda1)
-        """
-        mounted_devices = set()
-        try:
-            entries = open(mounts_file).readlines()
-        except:
-            entries = []
-        for entry in entries:
-            node = entry.split(' ')[0]
-            if node.startswith('/dev/'):
-                mounted_devices.add(node)
-        return mounted_devices
-
-    def get_process_executable(self, pid):
-        """Gets the executable path of a given process ID.
-
-        Args:
-            pid: Target process ID.
-
-        Returns:
-            The executable path of the given process ID or None on error.
-        """
-        try:
-            return os.readlink('/proc/%s/exe' % pid)
-        except:
-            return ""
-
-    def get_process_list(self, excluded_executables=[]):
-        """Gets a list of process IDs of active processes.
-
-        Gets a list of process IDs of active processes by looking into /proc
-        and filters out those processes with a executable path that is
-        excluded.
-
-        Args:
-            excluded_executables: A list of executable paths to exclude.
-
-        Returns:
-            A list of process IDs of active processes.
-        """
-        processes = []
-        for path in os.listdir('/proc'):
-            if not path.isdigit(): continue
-            process_exe = self.get_process_executable(path)
-            if process_exe and process_exe not in excluded_executables:
-                processes.append(path)
-        return processes
-
-    def run_once(self):
-        if os.geteuid() != 0:
-            raise error.TestNAError('This test needs to be run under root')
-
-        for path in [self._CGPT_PATH, self._ROOTDEV_PATH]:
-            if not os.path.isfile(path):
-                raise error.TestNAError('%s not found' % path)
-
-        root_device = bin_utils.get_root_device()
-        if not root_device:
-            raise error.TestNAError('Could not find the root device')
-        logging.debug('Root device: %s' % root_device)
-
-        root_partitions = self.get_root_partitions(root_device)
-        if not root_partitions:
-            raise error.TestNAError('Could not find any root partition')
-        logging.debug('Root partitions: %s' % ', '.join(root_partitions))
-
-        processes = self.get_process_list([self._UPDATE_ENGINE_PATH])
-        if not processes:
-            raise error.TestNAError('Could not find any process')
-        logging.debug('Active processes: %s' % ', '.join(processes))
-
-        for process in processes:
-            process_exe = self.get_process_executable(process)
-            mounts_file = '/proc/%s/mounts' % process
-            mounted_devices = self.get_mounted_devices(mounts_file)
-            for partition in root_partitions:
-                if partition in mounted_devices:
-                    raise error.TestFail(
-                            'Root partition "%s" is mounted by process %s (%s)'
-                            % (partition, process, process_exe))