• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 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.client.common_lib import utils
6
7AUTHOR = 'dlunev, abergman, chromeos-engprod-platform-syd, chromeos-storage'
8NAME = 'hardware_StorageQualV2.short_functional'
9ATTRIBUTES = ''
10TIME = 'LENGTHY'
11TEST_CATEGORY = 'Stress'
12TEST_CLASS = 'Hardware'
13TEST_TYPE = 'Server'
14ATTRIBUTES = 'suite:storage_qual_bringup'
15PY_VERSION = 3
16PRIORITY = 200
17
18MAX_RESULT_SIZE_KB = 1024 * 1024
19JOB_RETRIES = 0
20REQUIRE_SSP = True
21
22DOC = '''
23Run the Tast-based storage qualification quick test.
24
25Tast is an integration-testing framework analogous to the test-running portion
26of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for
27more information.
28
29See http://go/tast-failures for information about investigating failures.
30'''
31import tempfile
32import yaml
33
34def run(machine):
35    with tempfile.NamedTemporaryFile(suffix='.yaml', mode='w+') as temp_file:
36        # Writing test arguments to yaml file except for wrapper-related arguments.
37        test_args = dict()
38        test_args['tast_skip_setup_check'] = 'true'
39        test_args['tast_suspend_block_timeout'] = '10m'
40        yaml.dump(test_args, stream=temp_file, default_flow_style=False)
41
42        job.run_test('tast',
43                     host=hosts.create_host(machine),
44                     test_exprs=['storage.FullQualificationStress.functional'],
45                     ignore_test_failures=False,
46                     max_run_sec=7200,
47                     command_args=args,
48                     varsfiles=[temp_file.name])
49
50parallel_simple(run, machines)
51