Home | History | Annotate | Download | only in hardware_StorageQualTrimStress
      1 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 from autotest_lib.server import autotest
      6 from autotest_lib.server import hosts
      7 from autotest_lib.server import test
      8 
      9 class hardware_StorageQualTrimStress(test.test):
     10     """Do traffic and trim while suspending aggressively."""
     11 
     12     version = 1
     13     def run_once(self, client_ip, duration):
     14         client = hosts.create_host(client_ip)
     15         client_at = autotest.Autotest(client)
     16         control = """job.parallel(
     17             [lambda: job.run_test('power_SuspendStress', tag='disk',
     18                 duration=%d, init_delay=10, min_suspend=7, min_resume=30,
     19                 check_connection=True)],
     20             [lambda: job.run_test('hardware_TrimIntegrity', test_length=%d,
     21                 disable_sysinfo=True,
     22                 tag='qual_trim')])""" % (duration, duration)
     23         client_at.run(control, '.', None)
     24 
     25