blob: 68f69b542065c94e1a68dee0cd0f7c3888232c46 [file] [log] [blame]
Ang Li93420002016-05-10 19:11:44 -07001#!/usr/bin/env python3.4
2#
3# Copyright 2016 - The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
Ang Li93420002016-05-10 19:11:44 -070017"""This module has the global key values that are used across framework
18modules.
19"""
Ang Lie2139f12016-05-12 17:39:06 -070020
21
Ang Li64920272016-05-26 18:37:43 -070022class ConfigKeys(object):
Ang Li93420002016-05-10 19:11:44 -070023 """Enum values for test config related lookups.
24 """
25 # Keys used to look up values from test config files.
26 # These keys define the wording of test configs and their internal
27 # references.
Keun Soo Yimf43b2fb2016-07-25 16:56:36 -070028 KEY_LOG_PATH = "log_path"
Ang Li93420002016-05-10 19:11:44 -070029 KEY_TESTBED = "test_bed"
30 KEY_TESTBED_NAME = "name"
31 KEY_TEST_PATHS = "test_paths"
32
33 # Internal keys, used internally, not exposed to user's config files.
34 IKEY_USER_PARAM = "user_params"
35 IKEY_TESTBED_NAME = "testbed_name"
Keun Soo Yimb3bee692016-07-27 13:14:48 -070036 IKEY_LOG_PATH = "log_path"
Keun Soo Yimf43b2fb2016-07-25 16:56:36 -070037
38 IKEY_BUILD = "build"
39 IKEY_DATA_FILE_PATH = "data_file_path"
Ang Li93420002016-05-10 19:11:44 -070040
Keun Soo Yim5cb5e742016-07-28 20:21:18 -070041 # sub fields of test_bed
42 IKEY_PRODUCT_TYPE = "product_type"
43 IKEY_PRODUCT_VARIANT = "product_variant"
44 IKEY_BUILD_FLAVOR = "build_flavor"
45 IKEY_BUILD_ID = "build_id"
46 IKEY_BRANCH = "branch"
47 IKEY_BUILD_ALIAS = "build_alias"
48 IKEY_API_LEVEL = "api_level"
49 IKEY_SERIAL = "serial"
50
Ang Li93420002016-05-10 19:11:44 -070051 # A list of keys whose values in configs should not be passed to test
52 # classes without unpacking first.
Keun Soo Yimf43b2fb2016-07-25 16:56:36 -070053 RESERVED_KEYS = (KEY_TESTBED, KEY_LOG_PATH, KEY_TEST_PATHS)