• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5from autotest_lib.server import autotest
6from autotest_lib.server import hosts
7from autotest_lib.server import test
8
9class 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