• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2015 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 = 'garnold'
8NAME = 'brillo_MemorySizeTest'
9TIME = 'SHORT'
10TEST_CATEGORY = 'Functional'
11TEST_TYPE = 'Server'
12ATTRIBUTES = ('suite:brillo-bvt,suite:brillo-smoke,suite:brillo-presubmit,'
13              'suite:brillo-postsubmit')
14
15DOC = """
16Tests whether a Brillo device has sufficient memory.
17"""
18
19TEST_ARG_NAMES = ('min_total', 'min_free')
20args_dict = utils.args_to_dict(args)
21
22def run(machine):
23    test_args = {name: args_dict[name] for name in TEST_ARG_NAMES
24                 if name in args_dict}
25    job.run_test('brillo_MemorySizeTest', host=hosts.create_host(machine),
26                 **test_args)
27
28
29parallel_simple(run, machines)
30