Remove platform_AnomalyDetector test.

This has been replaced with tast's crash.KernelWarning test.

BUG=None
TEST=CQ

Change-Id: I2e500aeff2d2a2fcc112982c2b587001c3e2d5d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2809200
Tested-by: Miriam Zimmerman <mutexlox@chromium.org>
Reviewed-by: Ian Barkley-Yeung <iby@chromium.org>
Commit-Queue: Miriam Zimmerman <mutexlox@chromium.org>
diff --git a/client/site_tests/platform_AnomalyDetector/control b/client/site_tests/platform_AnomalyDetector/control
deleted file mode 100644
index c0c10cf..0000000
--- a/client/site_tests/platform_AnomalyDetector/control
+++ /dev/null
@@ -1,21 +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.
-
-NAME = "platform_AnomalyDetector"
-AUTHOR = "chromeos-kernel@google.com"
-PURPOSE = "Checks that the anomaly detector is collecting log anomalies"
-CRITERIA = "The detector must create a file when a test warning is produced"
-TIME = "SHORT"
-TEST_CATEGORY = "Functional"
-TEST_CLASS = "Platform"
-TEST_TYPE = "Client"
-ATTRIBUTES = "suite:bvt-perbuild"
-
-DOC = """
-This checks that the anomaly detector is operational by generating
-a test kernel warning and verifying that the detector daemon collects it.
-More functionality is tested by the compile-time test.
-"""
-
-job.run_test('platform_AnomalyDetector')
diff --git a/client/site_tests/platform_AnomalyDetector/platform_AnomalyDetector.py b/client/site_tests/platform_AnomalyDetector/platform_AnomalyDetector.py
deleted file mode 100644
index eeb9f16..0000000
--- a/client/site_tests/platform_AnomalyDetector/platform_AnomalyDetector.py
+++ /dev/null
@@ -1,36 +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.
-
-import os
-import time
-from autotest_lib.client.bin import test, utils
-from autotest_lib.client.cros import upstart
-
-class platform_AnomalyDetector(test.test):
-    "Tests the anomaly detector daemon"
-    version = 1
-
-    def run_once(self):
-        "Runs the test once"
-
-        # Restart the anomaly detector daemon (to clear its cache of
-        # "already-seen warnings" and ensure this one is logged)
-        upstart.restart_job("anomaly-detector")
-
-        # Give enough time for the anomaly detector to open the journal and scan
-        # to the end. (otherwise, it will miss the warning message).
-        # TODO(https://crbug.com/983725): Check that it's opened the journal.
-        time.sleep(0.5)
-
-        # Delete old kernel warning files to distinguish this one.
-        utils.system("rm -rf /var/spool/crash/kernel_warning*")
-
-        lkdtm = "/sys/kernel/debug/provoke-crash/DIRECT"
-        if os.path.exists(lkdtm):
-            utils.system("echo WARNING > %s" % (lkdtm))
-        else:
-            utils.system("echo warning > /proc/breakme")
-
-        cmd = "test -f /var/spool/crash/kernel_warning*.kcrash"
-        utils.poll_for_condition_ex(lambda: utils.system(cmd) == 0)
diff --git a/metadata/generated/config.cfg b/metadata/generated/config.cfg
index 6ed76d6..3aedd19 100644
--- a/metadata/generated/config.cfg
+++ b/metadata/generated/config.cfg
@@ -401,22 +401,6 @@
 					}
 				},
 				{
-					"name": "remoteTestDrivers/tauto/tests/platform/AnomalyDetector",
-					"attributes": [
-						{
-							"name": "suite:bvt-perbuild"
-						}
-					],
-					"informational": {
-						"details": {
-							"main": {
-								"python_package": "autotest_lib.client.site_tests.platform_AnomalyDetector.platform_AnomalyDetector",
-								"test_args": []
-							}
-						}
-					}
-				},
-				{
 					"name": "remoteTestDrivers/tauto/tests/platform/BootLockbox",
 					"informational": {
 						"details": {
@@ -11961,4 +11945,4 @@
 			]
 		}
 	]
-}
\ No newline at end of file
+}
diff --git a/metadata/tests/platform.star b/metadata/tests/platform.star
index 9ddd5ba..64a81c7 100644
--- a/metadata/tests/platform.star
+++ b/metadata/tests/platform.star
@@ -25,11 +25,6 @@
             main_package = 'autotest_lib.client.site_tests.platform_AesThroughput.platform_AesThroughput',
         ),
         test_common.define_test(
-            'platform/AnomalyDetector',
-            suites = ['bvt-perbuild'],
-            main_package = 'autotest_lib.client.site_tests.platform_AnomalyDetector.platform_AnomalyDetector',
-        ),
-        test_common.define_test(
             'platform/BootLockbox',
             suites = [],
             main_package = 'autotest_lib.client.site_tests.platform_BootLockbox.platform_BootLockbox',