platform_SuspendStress: deprecate unused test.

CQ-DEPEND=CL:359431
BUG=chromium:626467
TEST=none

Change-Id: I7de58730be9e27767a000d699bbc8b891c58656f
Reviewed-on: https://chromium-review.googlesource.com/359344
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Puneet Kumar <puneetster@chromium.org>
diff --git a/client/site_tests/platform_SuspendStress/control b/client/site_tests/platform_SuspendStress/control
deleted file mode 100644
index cc85bf4..0000000
--- a/client/site_tests/platform_SuspendStress/control
+++ /dev/null
@@ -1,19 +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.
-
-TIME='LARGE'
-AUTHOR = 'The Chromium OS Authors'
-PURPOSE = 'Stress test the ecryptfs home directory across power state changes.'
-CRITERIA = 'This test is a stress test. Expected success, no crashes.'
-DOC = """
-This test puts the client host through suspend/resume cycles.
-"""
-NAME = 'platform_SuspendStress'
-TIME = 'MEDIUM'
-TEST_CLASS = 'platform'
-TEST_CATEGORY = 'Stress'
-TEST_TYPE = 'client'
-
-# Run suspend/resume cycle for 5 minutes.
-job.run_test('platform_SuspendStress', auto_start=True, runtime=300)
diff --git a/client/site_tests/platform_SuspendStress/platform_SuspendStress.py b/client/site_tests/platform_SuspendStress/platform_SuspendStress.py
deleted file mode 100644
index 2db9de3..0000000
--- a/client/site_tests/platform_SuspendStress/platform_SuspendStress.py
+++ /dev/null
@@ -1,60 +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.
-
-
-import os, random, subprocess, time
-import commands, logging, random, time
-from autotest_lib.client.bin import utils, test
-from autotest_lib.client.common_lib import error
-from autotest_lib.client.cros import rtc, sys_power
-
-
-MIN_SLEEP_INTERVAL = 5
-MIN_WORK_INTERVAL = 30
-START_FILE = '/tmp/power_state_cycle_begin'
-STOP_FILE = '/tmp/power_state_cycle_end'
-
-class platform_SuspendStress(test.test):
-    version = 1
-    def initialize(self):
-        random.seed() # System time is fine.
-        if os.path.exists(STOP_FILE):
-            logging.warning('removing existing stop file %s' % STOP_FILE)
-            os.unlink(STOP_FILE)
-
-
-    def suspend_and_resume(self, seconds=MIN_SLEEP_INTERVAL):
-        """Suspends for N seconds."""
-        sleep_seconds = min(seconds, MIN_SLEEP_INTERVAL)
-        suspend_time = rtc.get_seconds()
-        sys_power.do_suspend(sleep_seconds)
-        logging.debug('and we\'re back... %ds elapsed.',
-                      rtc.get_seconds() - suspend_time)
-
-
-    def power_state_cycle(self, timeout=None):
-        try:
-            while not os.path.exists(STOP_FILE):
-                if timeout and time.mktime(time.localtime()) > timeout:
-                    raise error.TestFail('didn\'t find %s before timeout.' %
-                                         STOP_FILE)
-                self.suspend_and_resume(random.randint(MIN_SLEEP_INTERVAL, 15))
-                time.sleep(random.randint(MIN_WORK_INTERVAL,
-                                          MIN_WORK_INTERVAL+5))
-        finally:
-            # Ensure we disable the RTC alarm, leaving the original state
-            rtc.set_wake_alarm(0)
-
-
-    def run_once(self, auto_start=False, runtime=None):
-        if auto_start:
-            open(START_FILE, 'w').close()
-        utils.poll_for_condition(lambda: os.path.exists(START_FILE),
-                                 error.TestFail('startup not triggered.'),
-                                 timeout=30, sleep_interval=1)
-        logging.debug('Found %s, starting power state cycle.' % START_FILE)
-        if runtime:
-            runtime = time.mktime(time.localtime()) + runtime
-        os.unlink(START_FILE)
-        self.power_state_cycle(runtime)