aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazuhiro Inaba <kinaba@chromium.org>2022-05-23 01:27:55 +0000
committerKazuhiro Inaba <kinaba@chromium.org>2022-05-23 02:13:32 +0000
commit824a4bf7eaefd25d74ee5f965a6b095940c5ea99 (patch)
treed79f70cff2d9659360e8d0ebfd7ec8210437ba12
parent2f07abdbc923413a984653e85b81992092f76860 (diff)
downloadautotest-824a4bf7eaefd25d74ee5f965a6b095940c5ea99.tar.gz
Revert "cheets_CTS_(P/R): Use servo command to ensure USB storage ejection."
This reverts commit 0af7c33e6a36fe6d7dafe9a7e27c35a24bd12591. Reason for revert: b/188369883#comment20 it does not look working as expected Original change's description: > cheets_CTS_(P/R): Use servo command to ensure USB storage ejection. > > BUG=b:188369883 > TEST=cheets_CTS_R.internal.arm.CtsProvider > > Change-Id: Ibb76239c0d04715bfb009273ab64a2d52aef9cdd > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/3559871 > Commit-Queue: Rohit Makasana <rohitbm@chromium.org> > Reviewed-by: Rohit Makasana <rohitbm@chromium.org> > Auto-Submit: Kazuhiro Inaba <kinaba@chromium.org> > Commit-Queue: Kazuhiro Inaba <kinaba@chromium.org> > Tested-by: Kazuhiro Inaba <kinaba@chromium.org> Bug: b:188369883 Change-Id: I1abe8f6070592948bd6c4f652fe45f9c4d0c61e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/3651967 Commit-Queue: Kazuhiro Inaba <kinaba@chromium.org> Commit-Queue: Rintaro Kuroiwa <rkuroiwa@google.com> Auto-Submit: Kazuhiro Inaba <kinaba@chromium.org> Tested-by: Kazuhiro Inaba <kinaba@chromium.org> Reviewed-by: Rintaro Kuroiwa <rkuroiwa@google.com>
-rwxr-xr-xserver/cros/tradefed/generate_controlfiles_CTS_P.py21
-rwxr-xr-xserver/cros/tradefed/generate_controlfiles_CTS_R.py22
-rwxr-xr-xserver/cros/tradefed/generate_controlfiles_common.py15
-rw-r--r--server/cros/tradefed/tradefed_test.py7
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.CtsApp11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.CtsBluetoothTestCases4
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.CtsJobScheduler11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaStressTestCases1
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.3212
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.6412
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.ctshardware11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.CtsOs11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.CtsProviderTestCases11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsAdminPackageInstallerTestCases_-_CtsCameraApi25TestCases5
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.3211
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.6411
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMidiTestCases_-_CtsSecurityBulletinHostTestCases11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.CtsApp11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.CtsBluetoothTestCases4
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.CtsJobScheduler11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaStressTestCases1
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.3212
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.6412
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.ctshardware11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.CtsOs11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.CtsProviderTestCases11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsAdminPackageInstallerTestCases_-_CtsCameraApi25TestCases5
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases11
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.3211
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.6411
-rw-r--r--server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMidiTestCases_-_CtsSecurityBulletinHostTestCases11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.CtsApp5
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.CtsJobScheduler11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.3211
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.6411
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.ctshardware11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.CtsOs11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.CtsProvider11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.CtsSensor4
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.CtsSensorTestCases.ctshardware4
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsAccessibilityTestCases_-_CtsCameraApi25TestCases5
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.3211
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.6411
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaV2TestCases_-_CtsProtoTestCases11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsProviderTestCases_-_CtsSecurityBulletinHostTestCases11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsSensorTestCases_-_CtsSensorTestCases4
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.CtsApp5
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.CtsJobScheduler11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.3211
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.6411
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.ctshardware11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.CtsOs11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.CtsProvider11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.CtsSensor4
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.CtsSensorTestCases.ctshardware4
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsAccessibilityTestCases_-_CtsCameraApi25TestCases5
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.3211
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.6411
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaV2TestCases_-_CtsProtoTestCases11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsProviderTestCases_-_CtsSecurityBulletinHostTestCases11
-rw-r--r--server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsSensorTestCases_-_CtsSensorTestCases4
64 files changed, 185 insertions, 432 deletions
diff --git a/server/cros/tradefed/generate_controlfiles_CTS_P.py b/server/cros/tradefed/generate_controlfiles_CTS_P.py
index 1ebf5dd9d4..c4ba595d5c 100755
--- a/server/cros/tradefed/generate_controlfiles_CTS_P.py
+++ b/server/cros/tradefed/generate_controlfiles_CTS_P.py
@@ -155,14 +155,6 @@ CONFIG['BVT_PERBUILD'] = [
'CtsVoiceSettingsTestCases',
]
-CONFIG['NEEDS_DISK_EJECT'] = [
- 'CtsAppSecurityHostTestCases',
- 'CtsJobSchedulerTestCases',
- 'CtsMediaTestCases',
- 'CtsOsTestCases',
- 'CtsProviderTestCases',
-]
-
CONFIG['NEEDS_POWER_CYCLE'] = [
'CtsBluetoothTestCases',
]
@@ -207,9 +199,17 @@ CONFIG['ENABLE_DEFAULT_APPS'] = [
'CtsContentTestCases',
]
+# Run `eject` for (and only for) each device with RM=1 in lsblk output.
+_EJECT_REMOVABLE_DISK_COMMAND = (
+ "\'lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject\'")
# Behave more like in the verififed mode.
_SECURITY_PARANOID_COMMAND = (
"\'echo 3 > /proc/sys/kernel/perf_event_paranoid\'")
+# TODO(kinaba): Come up with a less hacky way to handle the situation.
+# {0} is replaced with the retry count. Writes either 1 (required by
+# CtsSimpleperfTestCases) or 3 (CtsSecurityHostTestCases).
+_ALTERNATING_PARANOID_COMMAND = (
+ "\'echo $(({0} % 2 * 2 + 1)) > /proc/sys/kernel/perf_event_paranoid\'")
# Expose /proc/config.gz
_CONFIG_MODULE_COMMAND = "\'modprobe configs\'"
@@ -235,6 +235,11 @@ CONFIG['PRECONDITION'] = {
'CtsNetTestCases': [_START_MDNS_COMMAND],
}
CONFIG['LOGIN_PRECONDITION'] = {
+ 'CtsAppSecurityHostTestCases': [_EJECT_REMOVABLE_DISK_COMMAND],
+ 'CtsJobSchedulerTestCases': [_EJECT_REMOVABLE_DISK_COMMAND],
+ 'CtsMediaTestCases': [_EJECT_REMOVABLE_DISK_COMMAND],
+ 'CtsOsTestCases': [_EJECT_REMOVABLE_DISK_COMMAND],
+ 'CtsProviderTestCases': [_EJECT_REMOVABLE_DISK_COMMAND],
}
_WIFI_CONNECT_COMMANDS = [
diff --git a/server/cros/tradefed/generate_controlfiles_CTS_R.py b/server/cros/tradefed/generate_controlfiles_CTS_R.py
index a683f1d620..dd80a6e200 100755
--- a/server/cros/tradefed/generate_controlfiles_CTS_R.py
+++ b/server/cros/tradefed/generate_controlfiles_CTS_R.py
@@ -141,16 +141,6 @@ CONFIG['NEEDS_POWER_CYCLE'] = [
'CtsSensorTestCases',
]
-# Test cases relying on USB stick to be removed should enable servo
-CONFIG['NEEDS_DISK_EJECT'] = [
- 'CtsAppSecurityHostTestCases',
- 'CtsJobSchedulerTestCases',
- 'CtsMediaTestCases',
- 'CtsOsTestCases',
- 'CtsProviderTestCases',
- 'CtsProviderUiTestCases',
-]
-
CONFIG['HARDWARE_DEPENDENT_MODULES'] = [
'CtsSensorTestCases',
'CtsCameraTestCases',
@@ -198,6 +188,10 @@ CONFIG['ENABLE_DEFAULT_APPS'] = [
'CtsContentTestCases',
]
+# Run `eject` for (and only for) each device with RM=1 in lsblk output.
+_EJECT_REMOVABLE_DISK_COMMAND = (
+ "\'lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject\'")
+
_WIFI_CONNECT_COMMANDS = [
# These needs to be in order.
"'/usr/local/autotest/cros/scripts/wifi connect %s %s\' % (ssid, wifipass)",
@@ -221,7 +215,13 @@ CONFIG['PRECONDITION'] = {
'CtsCameraTestCases.NativeCameraDeviceTest': _DISPLAY_REFRESH_COMMANDS,
}
-CONFIG['LOGIN_PRECONDITION'] = {}
+CONFIG['LOGIN_PRECONDITION'] = {
+ 'CtsAppSecurityHostTestCases': [_EJECT_REMOVABLE_DISK_COMMAND],
+ 'CtsJobSchedulerTestCases': [_EJECT_REMOVABLE_DISK_COMMAND],
+ 'CtsMediaTestCases': [_EJECT_REMOVABLE_DISK_COMMAND],
+ 'CtsOsTestCases': [_EJECT_REMOVABLE_DISK_COMMAND],
+ 'CtsProviderTestCases': [_EJECT_REMOVABLE_DISK_COMMAND],
+}
# Preconditions applicable to public tests.
CONFIG['PUBLIC_PRECONDITION'] = {
diff --git a/server/cros/tradefed/generate_controlfiles_common.py b/server/cros/tradefed/generate_controlfiles_common.py
index ba46fe300b..c3c9622d24 100755
--- a/server/cros/tradefed/generate_controlfiles_common.py
+++ b/server/cros/tradefed/generate_controlfiles_common.py
@@ -66,6 +66,8 @@ _CONTROLFILE_TEMPLATE = Template(
DOC = '{{DOC}}'
{%- if servo_support_needed %}
+ # For local debugging, if your test setup doesn't have servo, REMOVE these
+ # two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
@@ -77,6 +79,8 @@ _CONTROLFILE_TEMPLATE = Template(
{% else %}
def {{test_func_name}}(machine):
{%- if servo_support_needed %}
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
@@ -135,7 +139,7 @@ _CONTROLFILE_TEMPLATE = Template(
{%- for arg in extra_args %}
{{arg}},
{%- endfor %}
- {%- if needs_power_cycle %}
+ {%- if servo_support_needed %}
hard_reboot_on_failure=True,
{%- endif %}
{%- if camera_facing %}
@@ -297,14 +301,6 @@ def get_doc(modules, abi, is_public):
def servo_support_needed(modules, is_public=True):
"""Determines if servo support is needed for a module."""
- servo_modules = set(
- CONFIG.get('NEEDS_DISK_EJECT', []) +
- CONFIG.get('NEEDS_POWER_CYCLE', []))
- return not is_public and modules.intersection(servo_modules)
-
-
-def needs_power_cycle(modules, is_public=True):
- """Determines if powercycling is needed for a module."""
return not is_public and any(module in CONFIG['NEEDS_POWER_CYCLE']
for module in modules)
@@ -964,7 +960,6 @@ def get_controlfile_content(combined,
uri=uri,
DOC=get_doc(modules, abi, is_public),
servo_support_needed=servo_support_needed(modules, is_public),
- needs_power_cycle=needs_power_cycle(modules, is_public),
wifi_info_needed=wifi_info_needed(modules, is_public),
max_retries=get_max_retries(modules, abi, suites, is_public),
timeout=calculate_timeout(modules, suites),
diff --git a/server/cros/tradefed/tradefed_test.py b/server/cros/tradefed/tradefed_test.py
index c2bb0906c4..c12fc91edf 100644
--- a/server/cros/tradefed/tradefed_test.py
+++ b/server/cros/tradefed/tradefed_test.py
@@ -191,13 +191,6 @@ class TradefedTest(test.test):
bundle)
self._hard_reboot_on_failure = hard_reboot_on_failure
- # Make sure USB key is invisible to the device.
- if self._hosts[0].servo:
- logging.error("usb off by servo")
- self._hosts[0].servo.switch_usbkey('off')
- else:
- logging.error("no servo")
-
def _output_perf(self):
"""Output performance values."""
base = self._default_tradefed_base_dir()
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsApp b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsApp
index e223d150c8..76ef5c31bb 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsApp
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsApp
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.arm.CtsApp'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsAppComponentFactoryTestCases, CtsAppSecurityHostTestCases, CtsAppTestCases, CtsAppUsageHostTestCases, CtsAppWidgetTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=23400)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsBluetoothTestCases b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsBluetoothTestCases
index f7a6fbf1fe..57bbf16565 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsBluetoothTestCases
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsBluetoothTestCases
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsBluetoothTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsJobScheduler b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsJobScheduler
index 2cf3a4326d..cf6b344dd1 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsJobScheduler
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsJobScheduler
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.arm.CtsJobScheduler'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsJobSchedulerSharedUidTestCases, CtsJobSchedulerTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -37,6 +29,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=5400)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaStressTestCases b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaStressTestCases
index f7855098e4..21d9918121 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaStressTestCases
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaStressTestCases
@@ -30,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ precondition_commands=['cras_test_client --mute 1'],
timeout=18000)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.32 b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.32
index 52e0e6471a..2239334f33 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.32
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.32
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.arm.CtsMediaTestCases.32'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -38,6 +30,8 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
+ precondition_commands=['cras_test_client --mute 1'],
timeout=36000)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.64 b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.64
index 0f2f98a6bb..3e130e929b 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.64
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.64
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.arm.CtsMediaTestCases.64'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -38,6 +30,8 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
+ precondition_commands=['cras_test_client --mute 1'],
timeout=36000)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.ctshardware b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.ctshardware
index 59ac76bd0e..e98d8f59f2 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.ctshardware
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsMediaTestCases.ctshardware
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.arm.CtsMediaTestCases.ctshardware'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=36000)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsOs b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsOs
index 079f945c7c..02af46b8f4 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsOs
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsOs
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.arm.CtsOs'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsOsHostTestCases, CtsOsTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -37,6 +29,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=5400)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsProviderTestCases b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsProviderTestCases
index 331b8aefdc..0aa3697580 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.CtsProviderTestCases
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.CtsProviderTestCases
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.arm.CtsProviderTestCases'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsProviderTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -37,6 +29,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=3600)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsAdminPackageInstallerTestCases_-_CtsCameraApi25TestCases b/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsAdminPackageInstallerTestCases_-_CtsCameraApi25TestCases
index 626c9f792d..01dd04c99e 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsAdminPackageInstallerTestCases_-_CtsCameraApi25TestCases
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsAdminPackageInstallerTestCases_-_CtsCameraApi25TestCases
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsAdminPackageInstallerTestCases, CtsAdminTestCases, CtsAlarmClockTestCases, CtsAlarmManagerTestCases, CtsAndroidAppTestCases, CtsAndroidTestBase27ApiSignatureTestCases, CtsAndroidTestMockCurrentApiSignatureTestCases, CtsAndroidTestRunnerCurrentApiSignatureTestCases, CtsAnimationTestCases, CtsApacheHttpLegacy27ApiSignatureTestCases, CtsApacheHttpLegacyCurrentApiSignatureTestCases, CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases, CtsAppComponentFactoryTestCases, CtsAppSecurityHostTestCases, CtsAppTestCases, CtsAppUsageHostTestCases, CtsAppWidgetTestCases, CtsAslrMallocTestCases, CtsAssistTestCases, CtsAtraceHostTestCases, CtsAutoFillServiceTestCases, CtsBackgroundRestrictionsTestCases, CtsBackupHostTestCases, CtsBackupTestCases, CtsBatterySavingTestCases, CtsBionicTestCases, CtsBluetoothTestCases, CtsBootStatsTestCases, CtsCalendarcommon2TestCases, CtsCameraApi25TestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
@@ -39,6 +43,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
prerequisites=['bluetooth'],
hard_reboot_on_failure=True,
timeout=88200)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases b/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases
index 5a82eda78f..98b1fad012 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.arm.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsFragmentTestCases, CtsFragmentTestCasesSdk26, CtsGestureTestCases, CtsGpuToolsHostTestCases, CtsGraphicsTestCases, CtsHardwareTestCases, CtsHarmfulAppWarningHostTestCases, CtsHiddenApiBlacklistApi27TestCases, CtsHiddenApiBlacklistCurrentApiTestCases, CtsHiddenApiBlacklistDebugClassTestCases, CtsHiddenApiKillswitchDebugClassTestCases, CtsHiddenApiKillswitchWhitelistTestCases, CtsHiddenApiKillswitchWildcardTestCases, CtsHostTzDataTests, CtsHostsideNetworkTests, CtsHostsideNumberBlockingTestCases, CtsHostsideTvTests, CtsHostsideWebViewTests, CtsIcuTestCases, CtsIncidentHostTestCases, CtsInlineMockingTestCases, CtsInputMethodServiceHostTestCases, CtsInputMethodTestCases, CtsIntentSignatureTestCases, CtsJankDeviceTestCases, CtsJdwpSecurityHostTestCases, CtsJdwpTestCases, CtsJniTestCases, CtsJobSchedulerSharedUidTestCases, CtsJobSchedulerTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=61200)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.32 b/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.32
index 8605239523..3733ea3036 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.32
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.32
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.32'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -39,6 +31,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=36000)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.64 b/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.64
index 69b15c0085..93d439045f 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.64
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.64
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.64'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -39,6 +31,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=36000)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMidiTestCases_-_CtsSecurityBulletinHostTestCases b/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMidiTestCases_-_CtsSecurityBulletinHostTestCases
index 72eb148224..8bb5bb11cd 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMidiTestCases_-_CtsSecurityBulletinHostTestCases
+++ b/server/site_tests/cheets_CTS_P/control.internal.arm.all.CtsMidiTestCases_-_CtsSecurityBulletinHostTestCases
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.arm.all.CtsMidiTestCases_-_CtsSecurityBulletinHostTestCases'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMidiTestCases, CtsMockingDebuggableTestCases, CtsMockingTestCases, CtsMonkeyTestCases, CtsMultiUserHostTestCases, CtsMultiUserTestCases, CtsNNAPITestCases, CtsNativeHardwareTestCases, CtsNativeMediaAAudioTestCases, CtsNativeMediaSlTestCases, CtsNativeMediaXaTestCases, CtsNativeNetTestCases, CtsNdefTestCases, CtsNetSecConfigAttributeTestCases, CtsNetSecConfigBasicDebugDisabledTestCases, CtsNetSecConfigBasicDebugEnabledTestCases, CtsNetSecConfigBasicDomainConfigTestCases, CtsNetSecConfigCleartextTrafficTestCases, CtsNetSecConfigDownloadManagerTestCases, CtsNetSecConfigInvalidPinTestCases, CtsNetSecConfigNestedDomainConfigTestCases, CtsNetSecConfigPrePCleartextTrafficTestCases, CtsNetSecConfigResourcesSrcTestCases, CtsNetSecPolicyUsesCleartextTrafficFalseTestCases, CtsNetSecPolicyUsesCleartextTrafficTrueTestCases, CtsNetSecPolicyUsesCleartextTrafficUnspecifiedTestCases, CtsNetTestCases, CtsNetTestCasesLegacyApi22, CtsNetTestCasesLegacyPermission22, CtsOmapiTestCases, CtsOpenGLTestCases, CtsOpenGlPerf2TestCases, CtsOpenGlPerfTestCases, CtsOsHostTestCases, CtsOsTestCases, CtsPdfTestCases, CtsPerfettoTestCases, CtsPermission2TestCases, CtsPermissionTestCases, CtsPreference2TestCases, CtsPreferenceTestCases, CtsPrintTestCases, CtsProtoTestCases, CtsProviderTestCases, CtsRenderscriptLegacyTestCases, CtsRenderscriptTestCases, CtsRsBlasTestCases, CtsRsCppTestCases, CtsSampleDeviceTestCases, CtsSampleHostTestCases, CtsSaxTestCases, CtsSeccompHostTestCases, CtsSecureElementAccessControlTestCases1, CtsSecureElementAccessControlTestCases2, CtsSecureElementAccessControlTestCases3, CtsSecurityBulletinHostTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
precondition_commands=['android-sh -c \'setprop ctl.start mdnsd\''],
timeout=106200)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsApp b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsApp
index 3781e02021..fbb2957c04 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsApp
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsApp
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.x86.CtsApp'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsAppComponentFactoryTestCases, CtsAppSecurityHostTestCases, CtsAppTestCases, CtsAppUsageHostTestCases, CtsAppWidgetTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=23400)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsBluetoothTestCases b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsBluetoothTestCases
index 3d5a6c7069..e153f4af6f 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsBluetoothTestCases
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsBluetoothTestCases
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsBluetoothTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsJobScheduler b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsJobScheduler
index 8992bcaaee..2406e70f83 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsJobScheduler
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsJobScheduler
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.x86.CtsJobScheduler'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsJobSchedulerSharedUidTestCases, CtsJobSchedulerTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -37,6 +29,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=5400)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaStressTestCases b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaStressTestCases
index 2e71fecdca..9b348e3e5a 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaStressTestCases
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaStressTestCases
@@ -30,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ precondition_commands=['cras_test_client --mute 1'],
timeout=18000)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.32 b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.32
index ed674d150f..13f2c67ef3 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.32
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.32
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.x86.CtsMediaTestCases.32'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -38,6 +30,8 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
+ precondition_commands=['cras_test_client --mute 1'],
timeout=36000)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.64 b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.64
index e26b5fda79..e0901b39b3 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.64
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.64
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.x86.CtsMediaTestCases.64'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -38,6 +30,8 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
+ precondition_commands=['cras_test_client --mute 1'],
timeout=36000)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.ctshardware b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.ctshardware
index fe0ab8bd41..6aa083a0f0 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.ctshardware
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsMediaTestCases.ctshardware
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.x86.CtsMediaTestCases.ctshardware'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=36000)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsOs b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsOs
index c426684804..f9fc32d93b 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsOs
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsOs
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.x86.CtsOs'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsOsHostTestCases, CtsOsTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -37,6 +29,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=5400)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsProviderTestCases b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsProviderTestCases
index 55bb5c9f3d..a1bdd18207 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.CtsProviderTestCases
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.CtsProviderTestCases
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.x86.CtsProviderTestCases'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsProviderTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -37,6 +29,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=3600)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsAdminPackageInstallerTestCases_-_CtsCameraApi25TestCases b/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsAdminPackageInstallerTestCases_-_CtsCameraApi25TestCases
index 23488de16b..40b0efa8ab 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsAdminPackageInstallerTestCases_-_CtsCameraApi25TestCases
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsAdminPackageInstallerTestCases_-_CtsCameraApi25TestCases
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsAdminPackageInstallerTestCases, CtsAdminTestCases, CtsAlarmClockTestCases, CtsAlarmManagerTestCases, CtsAndroidAppTestCases, CtsAndroidTestBase27ApiSignatureTestCases, CtsAndroidTestMockCurrentApiSignatureTestCases, CtsAndroidTestRunnerCurrentApiSignatureTestCases, CtsAnimationTestCases, CtsApacheHttpLegacy27ApiSignatureTestCases, CtsApacheHttpLegacyCurrentApiSignatureTestCases, CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases, CtsAppComponentFactoryTestCases, CtsAppSecurityHostTestCases, CtsAppTestCases, CtsAppUsageHostTestCases, CtsAppWidgetTestCases, CtsAslrMallocTestCases, CtsAssistTestCases, CtsAtraceHostTestCases, CtsAutoFillServiceTestCases, CtsBackgroundRestrictionsTestCases, CtsBackupHostTestCases, CtsBackupTestCases, CtsBatterySavingTestCases, CtsBionicTestCases, CtsBluetoothTestCases, CtsBootStatsTestCases, CtsCalendarcommon2TestCases, CtsCameraApi25TestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
@@ -39,6 +43,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
prerequisites=['bluetooth'],
hard_reboot_on_failure=True,
timeout=88200)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases b/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases
index 9af7efd983..9f02bc4ebf 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.x86.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsFragmentTestCases, CtsFragmentTestCasesSdk26, CtsGestureTestCases, CtsGpuToolsHostTestCases, CtsGraphicsTestCases, CtsHardwareTestCases, CtsHarmfulAppWarningHostTestCases, CtsHiddenApiBlacklistApi27TestCases, CtsHiddenApiBlacklistCurrentApiTestCases, CtsHiddenApiBlacklistDebugClassTestCases, CtsHiddenApiKillswitchDebugClassTestCases, CtsHiddenApiKillswitchWhitelistTestCases, CtsHiddenApiKillswitchWildcardTestCases, CtsHostTzDataTests, CtsHostsideNetworkTests, CtsHostsideNumberBlockingTestCases, CtsHostsideTvTests, CtsHostsideWebViewTests, CtsIcuTestCases, CtsIncidentHostTestCases, CtsInlineMockingTestCases, CtsInputMethodServiceHostTestCases, CtsInputMethodTestCases, CtsIntentSignatureTestCases, CtsJankDeviceTestCases, CtsJdwpSecurityHostTestCases, CtsJdwpTestCases, CtsJniTestCases, CtsJobSchedulerSharedUidTestCases, CtsJobSchedulerTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=61200)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.32 b/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.32
index 909c4e810c..85d31b901a 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.32
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.32
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.32'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -39,6 +31,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=36000)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.64 b/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.64
index efd5dfdf6c..59ea1b66ae 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.64
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.64
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.64'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -39,6 +31,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
timeout=36000)
parallel_simple(run_TS, machines)
diff --git a/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMidiTestCases_-_CtsSecurityBulletinHostTestCases b/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMidiTestCases_-_CtsSecurityBulletinHostTestCases
index cb078f44da..3a05f5b2e0 100644
--- a/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMidiTestCases_-_CtsSecurityBulletinHostTestCases
+++ b/server/site_tests/cheets_CTS_P/control.internal.x86.all.CtsMidiTestCases_-_CtsSecurityBulletinHostTestCases
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_P.internal.x86.all.CtsMidiTestCases_-_CtsSecurityBulletinHostTestCases'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMidiTestCases, CtsMockingDebuggableTestCases, CtsMockingTestCases, CtsMonkeyTestCases, CtsMultiUserHostTestCases, CtsMultiUserTestCases, CtsNNAPITestCases, CtsNativeHardwareTestCases, CtsNativeMediaAAudioTestCases, CtsNativeMediaSlTestCases, CtsNativeMediaXaTestCases, CtsNativeNetTestCases, CtsNdefTestCases, CtsNetSecConfigAttributeTestCases, CtsNetSecConfigBasicDebugDisabledTestCases, CtsNetSecConfigBasicDebugEnabledTestCases, CtsNetSecConfigBasicDomainConfigTestCases, CtsNetSecConfigCleartextTrafficTestCases, CtsNetSecConfigDownloadManagerTestCases, CtsNetSecConfigInvalidPinTestCases, CtsNetSecConfigNestedDomainConfigTestCases, CtsNetSecConfigPrePCleartextTrafficTestCases, CtsNetSecConfigResourcesSrcTestCases, CtsNetSecPolicyUsesCleartextTrafficFalseTestCases, CtsNetSecPolicyUsesCleartextTrafficTrueTestCases, CtsNetSecPolicyUsesCleartextTrafficUnspecifiedTestCases, CtsNetTestCases, CtsNetTestCasesLegacyApi22, CtsNetTestCasesLegacyPermission22, CtsOmapiTestCases, CtsOpenGLTestCases, CtsOpenGlPerf2TestCases, CtsOpenGlPerfTestCases, CtsOsHostTestCases, CtsOsTestCases, CtsPdfTestCases, CtsPerfettoTestCases, CtsPermission2TestCases, CtsPermissionTestCases, CtsPreference2TestCases, CtsPreferenceTestCases, CtsPrintTestCases, CtsProtoTestCases, CtsProviderTestCases, CtsRenderscriptLegacyTestCases, CtsRenderscriptTestCases, CtsRsBlasTestCases, CtsRsCppTestCases, CtsSampleDeviceTestCases, CtsSampleHostTestCases, CtsSaxTestCases, CtsSeccompHostTestCases, CtsSecureElementAccessControlTestCases1, CtsSecureElementAccessControlTestCases2, CtsSecureElementAccessControlTestCases3, CtsSecurityBulletinHostTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_P',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
precondition_commands=['android-sh -c \'setprop ctl.start mdnsd\''],
timeout=106200)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsApp b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsApp
index ab64e53bf5..4a182ff4e2 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsApp
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsApp
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsAppBindingHostTestCases, CtsAppBindingHostTestCases[secondary_user], CtsAppCompatHostTestCases, CtsAppCompatHostTestCases[instant], CtsAppCompatHostTestCases[secondary_user], CtsAppComponentFactoryTestCases, CtsAppComponentFactoryTestCases[instant], CtsAppComponentFactoryTestCases[secondary_user], CtsAppEnumerationTestCases, CtsAppEnumerationTestCases[secondary_user], CtsAppExitTestCases, CtsAppExitTestCases[instant], CtsAppExitTestCases[secondary_user], CtsAppIntegrityDeviceTestCases, CtsAppOpsTestCases, CtsAppOpsTestCases[instant], CtsAppOpsTestCases[secondary_user], CtsAppPredictionServiceTestCases, CtsAppPredictionServiceTestCases[secondary_user], CtsAppSecurityHostTestCases, CtsAppSecurityHostTestCases[secondary_user], CtsAppTestCases, CtsAppTestCases[instant], CtsAppTestCases[secondary_user], CtsAppUsageHostTestCases, CtsAppUsageHostTestCases[instant], CtsAppUsageHostTestCases[secondary_user], CtsAppWidgetTestCases, CtsAppWidgetTestCases[instant], CtsAppWidgetTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
@@ -38,6 +42,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
hard_reboot_on_failure=True,
timeout=61200)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsJobScheduler b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsJobScheduler
index fa971fe76c..64153077a2 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsJobScheduler
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsJobScheduler
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.arm.CtsJobScheduler'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsJobSchedulerSharedUidTestCases, CtsJobSchedulerSharedUidTestCases[secondary_user], CtsJobSchedulerTestCases, CtsJobSchedulerTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -37,6 +29,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=9000)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.32 b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.32
index 7271b05d69..68969cd09a 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.32
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.32
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.arm.CtsMediaTestCases.32'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases, CtsMediaTestCases[instant] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=39600)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.64 b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.64
index b784c4cad3..13f27e0934 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.64
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.64
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.arm.CtsMediaTestCases.64'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases, CtsMediaTestCases[instant] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=39600)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.ctshardware b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.ctshardware
index a164f6867c..23cb97810e 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.ctshardware
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsMediaTestCases.ctshardware
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.arm.CtsMediaTestCases.ctshardware'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=36000)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsOs b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsOs
index 3d5d834611..d793db8a0f 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsOs
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsOs
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.arm.CtsOs'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsOsHostTestCases, CtsOsHostTestCases[instant], CtsOsHostTestCases[secondary_user], CtsOsTestCases, CtsOsTestCases[instant] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -37,6 +29,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=10800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsProvider b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsProvider
index 36e3c59d22..e49cc91cfe 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsProvider
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsProvider
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.arm.CtsProvider'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsProviderTestCases, CtsProviderTestCases[secondary_user], CtsProviderUiTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -37,6 +29,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=7200)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsSensor b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsSensor
index 2e7b565495..15c6c669c2 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsSensor
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsSensor
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsSensorTestCases, CtsSensorTestCases[instant], CtsSensorTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsSensorTestCases.ctshardware b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsSensorTestCases.ctshardware
index f8dd43a11e..7af2ce9bb9 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.CtsSensorTestCases.ctshardware
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.CtsSensorTestCases.ctshardware
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsSensorTestCases of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsAccessibilityTestCases_-_CtsCameraApi25TestCases b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsAccessibilityTestCases_-_CtsCameraApi25TestCases
index a027af2606..73e34978ca 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsAccessibilityTestCases_-_CtsCameraApi25TestCases
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsAccessibilityTestCases_-_CtsCameraApi25TestCases
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsAccessibilityTestCases, CtsAccessibilityTestCases[instant], CtsAccessibilityTestCases[secondary_user], CtsAccountManagerTestCases, CtsAccountManagerTestCases[instant], CtsAccountManagerTestCases[secondary_user], CtsAccountsHostTestCases, CtsAccountsHostTestCases[instant], CtsAccountsHostTestCases[secondary_user], CtsActivityManagerBackgroundActivityTestCases, CtsActivityManagerBackgroundActivityTestCases[secondary_user], CtsAdbHostTestCases, CtsAdbHostTestCases[secondary_user], CtsAdbManagerHostTestCases, CtsAdbManagerHostTestCases[secondary_user], CtsAdminPackageInstallerTestCases, CtsAdminTestCases, CtsAlarmManagerTestCases, CtsAlarmManagerTestCases[instant], CtsAlarmManagerTestCases[secondary_user], CtsAndroidAppTestCases, CtsAndroidAppTestCases[instant], CtsAndroidAppTestCases[secondary_user], CtsAndroidTestBase28ApiSignatureTestCases, CtsAndroidTestBase28ApiSignatureTestCases[instant], CtsAndroidTestBase28ApiSignatureTestCases[secondary_user], CtsAndroidTestBaseCurrentApiSignatureTestCases, CtsAndroidTestBaseCurrentApiSignatureTestCases[instant], CtsAndroidTestBaseCurrentApiSignatureTestCases[secondary_user], CtsAndroidTestMockCurrentApiSignatureTestCases, CtsAndroidTestMockCurrentApiSignatureTestCases[instant], CtsAndroidTestMockCurrentApiSignatureTestCases[secondary_user], CtsAndroidTestRunnerCurrentApiSignatureTestCases, CtsAndroidTestRunnerCurrentApiSignatureTestCases[instant], CtsAndroidTestRunnerCurrentApiSignatureTestCases[secondary_user], CtsAngleIntegrationHostTestCases, CtsAngleIntegrationHostTestCases[instant], CtsAngleIntegrationHostTestCases[secondary_user], CtsAnimationTestCases, CtsAnimationTestCases[instant], CtsAnimationTestCases[secondary_user], CtsApacheHttpLegacy27ApiSignatureTestCases, CtsApacheHttpLegacy27ApiSignatureTestCases[instant], CtsApacheHttpLegacy27ApiSignatureTestCases[secondary_user], CtsApacheHttpLegacyCurrentApiSignatureTestCases, CtsApacheHttpLegacyCurrentApiSignatureTestCases[instant], CtsApacheHttpLegacyCurrentApiSignatureTestCases[secondary_user], CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases, CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases[instant], CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases[secondary_user], CtsApexTestCases, CtsApexTestCases[secondary_user], CtsAppBindingHostTestCases, CtsAppBindingHostTestCases[secondary_user], CtsAppCompatHostTestCases, CtsAppCompatHostTestCases[instant], CtsAppCompatHostTestCases[secondary_user], CtsAppComponentFactoryTestCases, CtsAppComponentFactoryTestCases[instant], CtsAppComponentFactoryTestCases[secondary_user], CtsAppEnumerationTestCases, CtsAppEnumerationTestCases[secondary_user], CtsAppExitTestCases, CtsAppExitTestCases[instant], CtsAppExitTestCases[secondary_user], CtsAppIntegrityDeviceTestCases, CtsAppOpsTestCases, CtsAppOpsTestCases[instant], CtsAppOpsTestCases[secondary_user], CtsAppPredictionServiceTestCases, CtsAppPredictionServiceTestCases[secondary_user], CtsAppSecurityHostTestCases, CtsAppSecurityHostTestCases[secondary_user], CtsAppTestCases, CtsAppTestCases[instant], CtsAppTestCases[secondary_user], CtsAppUsageHostTestCases, CtsAppUsageHostTestCases[instant], CtsAppUsageHostTestCases[secondary_user], CtsAppWidgetTestCases, CtsAppWidgetTestCases[instant], CtsAppWidgetTestCases[secondary_user], CtsAslrMallocTestCases, CtsAslrMallocTestCases[secondary_user], CtsAssistTestCases, CtsAssistTestCases[instant], CtsAssistTestCases[secondary_user], CtsAtomicInstallTestCases, CtsAtomicInstallTestCases[secondary_user], CtsAtraceHostTestCases, CtsAtraceHostTestCases[instant], CtsAtraceHostTestCases[secondary_user], CtsAttentionServiceDeviceTestCases, CtsAttentionServiceDeviceTestCases[secondary_user], CtsAutoFillServiceTestCases, CtsAutoFillServiceTestCases[instant], CtsAutoFillServiceTestCases[secondary_user], CtsBackgroundRestrictionsTestCases, CtsBackgroundRestrictionsTestCases[instant], CtsBackgroundRestrictionsTestCases[secondary_user], CtsBackupHostTestCases, CtsBackupTestCases, CtsBatterySavingTestCases, CtsBatterySavingTestCases[secondary_user], CtsBionicAppTestCases, CtsBionicAppTestCases[instant], CtsBionicAppTestCases[secondary_user], CtsBionicTestCases, CtsBionicTestCases[secondary_user], CtsBlobStoreHostTestCases, CtsBlobStoreHostTestCases[secondary_user], CtsBlobStoreHostTestHelper, CtsBlobStoreHostTestHelper[secondary_user], CtsBlobStoreTestCases, CtsBlobStoreTestCases[secondary_user], CtsBlobStoreTestHelper, CtsBlobStoreTestHelperDiffSig, CtsBlobStoreTestHelperDiffSig2, CtsBlobStoreTestHelperDiffSig2[secondary_user], CtsBlobStoreTestHelperDiffSig[secondary_user], CtsBlobStoreTestHelper[secondary_user], CtsBluetoothTestCases, CtsBluetoothTestCases[secondary_user], CtsBootStatsTestCases, CtsBootStatsTestCases[secondary_user], CtsCalendarProviderTestCases, CtsCalendarProviderTestCases[secondary_user], CtsCalendarcommon2TestCases, CtsCalendarcommon2TestCases[secondary_user], CtsCameraApi25TestCases, CtsCameraApi25TestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
@@ -39,6 +43,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
hard_reboot_on_failure=True,
timeout=172800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases
index 45256f2d57..5d02e1e0d3 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.arm.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsFragmentTestCases, CtsFragmentTestCasesSdk26, CtsFragmentTestCasesSdk26[instant], CtsFragmentTestCasesSdk26[secondary_user], CtsFragmentTestCases[instant], CtsFragmentTestCases[secondary_user], CtsFsMgrTestCases, CtsFsMgrTestCases[secondary_user], CtsGestureTestCases, CtsGestureTestCases[instant], CtsGestureTestCases[secondary_user], CtsGpuProfilingDataTestCases, CtsGpuProfilingDataTestCases[secondary_user], CtsGpuToolsHostTestCases, CtsGpuToolsHostTestCases[secondary_user], CtsGraphicsTestCases, CtsGraphicsTestCases[instant], CtsGraphicsTestCases[secondary_user], CtsGwpAsanTestCases, CtsGwpAsanTestCases[instant], CtsGwpAsanTestCases[secondary_user], CtsHardwareTestCases, CtsHardwareTestCases[secondary_user], CtsHarmfulAppWarningHostTestCases, CtsHarmfulAppWarningHostTestCases[secondary_user], CtsHdmiCecHostTestCases, CtsHdmiCecHostTestCases[secondary_user], CtsHiddenApiBlacklistApi27TestCases, CtsHiddenApiBlacklistApi27TestCases[secondary_user], CtsHiddenApiBlacklistApi28TestCases, CtsHiddenApiBlacklistApi28TestCases[secondary_user], CtsHiddenApiBlacklistCurrentApiTestCases, CtsHiddenApiBlacklistCurrentApiTestCases[secondary_user], CtsHiddenApiBlacklistDebugClassTestCases, CtsHiddenApiBlacklistDebugClassTestCases[secondary_user], CtsHiddenApiBlacklistTestApiTestCases, CtsHiddenApiBlacklistTestApiTestCases[secondary_user], CtsHiddenApiKillswitchDebugClassTestCases, CtsHiddenApiKillswitchDebugClassTestCases[instant], CtsHiddenApiKillswitchDebugClassTestCases[secondary_user], CtsHiddenApiKillswitchWhitelistTestCases, CtsHiddenApiKillswitchWhitelistTestCases[instant], CtsHiddenApiKillswitchWhitelistTestCases[secondary_user], CtsHiddenApiKillswitchWildcardTestCases, CtsHiddenApiKillswitchWildcardTestCases[instant], CtsHiddenApiKillswitchWildcardTestCases[secondary_user], CtsHostTzDataTests, CtsHostTzDataTests[secondary_user], CtsHostsideNetworkTests, CtsHostsideNetworkTests[instant], CtsHostsideNetworkTests[secondary_user], CtsHostsideNumberBlockingTestCases, CtsHostsideNumberBlockingTestCases[secondary_user], CtsHostsideTvTests, CtsHostsideTvTests[secondary_user], CtsHostsideWebViewTests, CtsHostsideWebViewTests[instant], CtsHostsideWebViewTests[secondary_user], CtsIcuTestCases, CtsIcuTestCases[secondary_user], CtsIdentityTestCases, CtsIdentityTestCases[secondary_user], CtsIkeTestCases, CtsIkeTestCases[secondary_user], CtsIncidentHostTestCases, CtsIncidentHostTestCases[instant], CtsIncrementalInstallHostTestCases, CtsIncrementalInstallHostTestCases[secondary_user], CtsInitTestCases, CtsInitTestCases[secondary_user], CtsInlineMockingTestCases, CtsInlineMockingTestCases[instant], CtsInlineMockingTestCases[secondary_user], CtsInputMethodServiceHostTestCases, CtsInputMethodServiceHostTestCases[instant], CtsInputMethodServiceHostTestCases[secondary_user], CtsInputMethodTestCases, CtsInputMethodTestCases[instant], CtsInputMethodTestCases[secondary_user], CtsInstantAppTests, CtsInstantAppTests[secondary_user], CtsIntentSignatureTestCases, CtsIntentSignatureTestCases[secondary_user], CtsJdwpSecurityHostTestCases, CtsJdwpSecurityHostTestCases[secondary_user], CtsJdwpTestCases, CtsJdwpTestCases[instant], CtsJdwpTestCases[secondary_user], CtsJdwpTunnelHostTestCases, CtsJdwpTunnelHostTestCases[secondary_user], CtsJniTestCases, CtsJniTestCases[instant], CtsJniTestCases[secondary_user], CtsJobSchedulerSharedUidTestCases, CtsJobSchedulerSharedUidTestCases[secondary_user], CtsJobSchedulerTestCases, CtsJobSchedulerTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=172800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.32 b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.32
index 429a2fa344..7e47f918ae 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.32
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.32
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.32'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases, CtsMediaTestCases[instant] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -39,6 +31,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=172800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.64 b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.64
index 5f32eea164..f217bd7f78 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.64
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.64
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.arm.all.CtsMediaTestCases_-_CtsMediaTestCases.64'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases, CtsMediaTestCases[instant] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -39,6 +31,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=172800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaV2TestCases_-_CtsProtoTestCases b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaV2TestCases_-_CtsProtoTestCases
index 4b20c323ee..e0144a2c1a 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaV2TestCases_-_CtsProtoTestCases
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsMediaV2TestCases_-_CtsProtoTestCases
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.arm.all.CtsMediaV2TestCases_-_CtsProtoTestCases'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaV2TestCases, CtsMidiTestCases, CtsMimeMapTestCases, CtsMimeMapTestCases[secondary_user], CtsMockingDebuggableTestCases, CtsMockingDebuggableTestCases[instant], CtsMockingDebuggableTestCases[secondary_user], CtsMockingTestCases, CtsMockingTestCases[instant], CtsMockingTestCases[secondary_user], CtsMonkeyTestCases, CtsMonkeyTestCases[secondary_user], CtsMultiUserHostTestCases, CtsMultiUserHostTestCases[instant], CtsMultiUserHostTestCases[secondary_user], CtsMultiUserTestCases, CtsMultiUserTestCases[instant], CtsMultiUserTestCases[secondary_user], CtsNNAPIBenchmarkTestCases, CtsNNAPIBenchmarkTestCases[instant], CtsNNAPIBenchmarkTestCases[secondary_user], CtsNNAPITestCases, CtsNNAPITestCases[secondary_user], CtsNativeEncryptionTestCases, CtsNativeEncryptionTestCases[instant], CtsNativeEncryptionTestCases[secondary_user], CtsNativeHardwareTestCases, CtsNativeHardwareTestCases[secondary_user], CtsNativeMediaAAudioTestCases, CtsNativeMediaAAudioTestCases[instant], CtsNativeMediaAAudioTestCases[secondary_user], CtsNativeMediaMetricsTestCases, CtsNativeMediaMetricsTestCases[instant], CtsNativeMediaMetricsTestCases[secondary_user], CtsNativeMediaSlTestCases, CtsNativeMediaSlTestCases[instant], CtsNativeMediaSlTestCases[secondary_user], CtsNativeMediaXaTestCases, CtsNativeMediaXaTestCases[instant], CtsNativeMediaXaTestCases[secondary_user], CtsNativeMidiTestCases, CtsNativeMidiTestCases[secondary_user], CtsNativeNetDnsTestCases, CtsNativeNetDnsTestCases[instant], CtsNativeNetDnsTestCases[secondary_user], CtsNativeNetTestCases, CtsNativeNetTestCases[instant], CtsNativeNetTestCases[secondary_user], CtsNdefTestCases, CtsNdefTestCases[secondary_user], CtsNdkBinderTestCases, CtsNdkBinderTestCases[instant], CtsNdkBinderTestCases[secondary_user], CtsNetApi23TestCases, CtsNetApi23TestCases[secondary_user], CtsNetSecConfigAttributeTestCases, CtsNetSecConfigAttributeTestCases[instant], CtsNetSecConfigAttributeTestCases[secondary_user], CtsNetSecConfigBasicDebugDisabledTestCases, CtsNetSecConfigBasicDebugDisabledTestCases[instant], CtsNetSecConfigBasicDebugDisabledTestCases[secondary_user], CtsNetSecConfigBasicDebugEnabledTestCases, CtsNetSecConfigBasicDebugEnabledTestCases[instant], CtsNetSecConfigBasicDebugEnabledTestCases[secondary_user], CtsNetSecConfigBasicDomainConfigTestCases, CtsNetSecConfigBasicDomainConfigTestCases[instant], CtsNetSecConfigBasicDomainConfigTestCases[secondary_user], CtsNetSecConfigCleartextTrafficTestCases, CtsNetSecConfigCleartextTrafficTestCases[instant], CtsNetSecConfigCleartextTrafficTestCases[secondary_user], CtsNetSecConfigDownloadManagerTestCases, CtsNetSecConfigDownloadManagerTestCases[secondary_user], CtsNetSecConfigInvalidPinTestCases, CtsNetSecConfigInvalidPinTestCases[instant], CtsNetSecConfigInvalidPinTestCases[secondary_user], CtsNetSecConfigNestedDomainConfigTestCases, CtsNetSecConfigNestedDomainConfigTestCases[instant], CtsNetSecConfigNestedDomainConfigTestCases[secondary_user], CtsNetSecConfigPrePCleartextTrafficTestCases, CtsNetSecConfigPrePCleartextTrafficTestCases[secondary_user], CtsNetSecConfigResourcesSrcTestCases, CtsNetSecConfigResourcesSrcTestCases[instant], CtsNetSecConfigResourcesSrcTestCases[secondary_user], CtsNetSecPolicyUsesCleartextTrafficFalseTestCases, CtsNetSecPolicyUsesCleartextTrafficFalseTestCases[secondary_user], CtsNetSecPolicyUsesCleartextTrafficTrueTestCases, CtsNetSecPolicyUsesCleartextTrafficTrueTestCases[secondary_user], CtsNetSecPolicyUsesCleartextTrafficUnspecifiedTestCases, CtsNetSecPolicyUsesCleartextTrafficUnspecifiedTestCases[secondary_user], CtsNetTestCases, CtsNetTestCasesInternetPermission, CtsNetTestCasesInternetPermission[instant], CtsNetTestCasesInternetPermission[secondary_user], CtsNetTestCasesLegacyApi22, CtsNetTestCasesLegacyApi22[secondary_user], CtsNetTestCasesLegacyPermission22, CtsNetTestCasesLegacyPermission22[secondary_user], CtsNetTestCasesUpdateStatsPermission, CtsNetTestCasesUpdateStatsPermission[instant], CtsNetTestCasesUpdateStatsPermission[secondary_user], CtsNetTestCases[instant], CtsNetTestCases[secondary_user], CtsNfcTestCases, CtsNfcTestCases[secondary_user], CtsNoPermissionTestCases, CtsNoPermissionTestCases25, CtsNoPermissionTestCases25[secondary_user], CtsNoPermissionTestCases[secondary_user], CtsOmapiTestCases, CtsOmapiTestCases[secondary_user], CtsOpenGLTestCases, CtsOpenGLTestCases[secondary_user], CtsOpenGlPerf2TestCases, CtsOpenGlPerf2TestCases[secondary_user], CtsOpenGlPerfTestCases, CtsOsHostTestCases, CtsOsHostTestCases[instant], CtsOsHostTestCases[secondary_user], CtsOsTestCases, CtsOsTestCases[instant], CtsPackageInstallAppOpDefaultTestCases, CtsPackageInstallAppOpDefaultTestCases[instant], CtsPackageInstallAppOpDefaultTestCases[secondary_user], CtsPackageInstallAppOpDeniedTestCases, CtsPackageInstallAppOpDeniedTestCases[instant], CtsPackageInstallAppOpDeniedTestCases[secondary_user], CtsPackageInstallTestCases, CtsPackageInstallTestCases[instant], CtsPackageInstallTestCases[secondary_user], CtsPackageInstallerTapjackingTestCases, CtsPackageInstallerTapjackingTestCases[secondary_user], CtsPackageUninstallTestCases, CtsPackageUninstallTestCases[secondary_user], CtsPackageWatchdogTestCases, CtsPackageWatchdogTestCases[secondary_user], CtsPdfTestCases, CtsPdfTestCases[instant], CtsPdfTestCases[secondary_user], CtsPerfettoTestCases, CtsPerfettoTestCases[secondary_user], CtsPermission2TestCases, CtsPermission2TestCases[instant], CtsPermission3TestCases, CtsPermission3TestCases[secondary_user], CtsPermissionTestCases, CtsPermissionTestCasesSdk28, CtsPermissionTestCasesSdk28[instant], CtsPermissionTestCasesSdk28[secondary_user], CtsPermissionTestCasesTelephony, CtsPermissionTestCasesTelephony[instant], CtsPermissionTestCasesTelephony[secondary_user], CtsPermissionTestCases[instant], CtsPreferenceTestCases, CtsPreferenceTestCases[instant], CtsPreferenceTestCases[secondary_user], CtsPrintTestCases, CtsPrintTestCases[instant], CtsPrintTestCases[secondary_user], CtsProtoTestCases, CtsProtoTestCases[instant], CtsProtoTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -39,6 +31,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=172800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsProviderTestCases_-_CtsSecurityBulletinHostTestCases b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsProviderTestCases_-_CtsSecurityBulletinHostTestCases
index 60a6c93380..b0bf1cf4b6 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsProviderTestCases_-_CtsSecurityBulletinHostTestCases
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsProviderTestCases_-_CtsSecurityBulletinHostTestCases
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.arm.all.CtsProviderTestCases_-_CtsSecurityBulletinHostTestCases'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsProviderTestCases, CtsProviderTestCases[secondary_user], CtsProviderUiTestCases, CtsQuickAccessWalletTestCases, CtsQuickAccessWalletTestCases[instant], CtsQuickAccessWalletTestCases[secondary_user], CtsRenderscriptLegacyTestCases, CtsRenderscriptLegacyTestCases[secondary_user], CtsRenderscriptTestCases, CtsRenderscriptTestCases[instant], CtsRenderscriptTestCases[secondary_user], CtsResolverServiceTestCases, CtsResolverServiceTestCases[secondary_user], CtsResourcesLoaderTests, CtsResourcesLoaderTests[secondary_user], CtsRoleTestCases, CtsRoleTestCases[secondary_user], CtsRollbackManagerHostTestCases, CtsRsBlasTestCases, CtsRsBlasTestCases[secondary_user], CtsRsCppTestCases, CtsRsCppTestCases[secondary_user], CtsSampleDeviceTestCases, CtsSampleDeviceTestCases[instant], CtsSampleDeviceTestCases[secondary_user], CtsSampleHostTestCases, CtsSampleHostTestCases[secondary_user], CtsSaxTestCases, CtsSaxTestCases[secondary_user], CtsScopedStorageHostTest, CtsScopedStorageHostTest[instant], CtsSdkExtensionsTestCases, CtsSdkExtensionsTestCases[instant], CtsSdkExtensionsTestCases[secondary_user], CtsSeccompHostTestCases, CtsSeccompHostTestCases[instant], CtsSeccompHostTestCases[secondary_user], CtsSecureElementAccessControlTestCases1, CtsSecureElementAccessControlTestCases1[secondary_user], CtsSecureElementAccessControlTestCases2, CtsSecureElementAccessControlTestCases2[secondary_user], CtsSecureElementAccessControlTestCases3, CtsSecureElementAccessControlTestCases3[secondary_user], CtsSecureFrpInstallTestCases, CtsSecureFrpInstallTestCases[secondary_user], CtsSecurityBulletinHostTestCases, CtsSecurityBulletinHostTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='arm',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=172800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsSensorTestCases_-_CtsSensorTestCases b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsSensorTestCases_-_CtsSensorTestCases
index 9dba4c7928..c62e510929 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsSensorTestCases_-_CtsSensorTestCases
+++ b/server/site_tests/cheets_CTS_R/control.internal.arm.all.CtsSensorTestCases_-_CtsSensorTestCases
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsSensorTestCases, CtsSensorTestCases[instant], CtsSensorTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using arm ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsApp b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsApp
index bee8a80e31..52ba9690df 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsApp
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsApp
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsAppBindingHostTestCases, CtsAppBindingHostTestCases[secondary_user], CtsAppCompatHostTestCases, CtsAppCompatHostTestCases[instant], CtsAppCompatHostTestCases[secondary_user], CtsAppComponentFactoryTestCases, CtsAppComponentFactoryTestCases[instant], CtsAppComponentFactoryTestCases[secondary_user], CtsAppEnumerationTestCases, CtsAppEnumerationTestCases[secondary_user], CtsAppExitTestCases, CtsAppExitTestCases[instant], CtsAppExitTestCases[secondary_user], CtsAppIntegrityDeviceTestCases, CtsAppOpsTestCases, CtsAppOpsTestCases[instant], CtsAppOpsTestCases[secondary_user], CtsAppPredictionServiceTestCases, CtsAppPredictionServiceTestCases[secondary_user], CtsAppSecurityHostTestCases, CtsAppSecurityHostTestCases[secondary_user], CtsAppTestCases, CtsAppTestCases[instant], CtsAppTestCases[secondary_user], CtsAppUsageHostTestCases, CtsAppUsageHostTestCases[instant], CtsAppUsageHostTestCases[secondary_user], CtsAppWidgetTestCases, CtsAppWidgetTestCases[instant], CtsAppWidgetTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
@@ -38,6 +42,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
hard_reboot_on_failure=True,
timeout=61200)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsJobScheduler b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsJobScheduler
index 0c614a48dc..d0461c62f4 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsJobScheduler
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsJobScheduler
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.x86.CtsJobScheduler'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsJobSchedulerSharedUidTestCases, CtsJobSchedulerSharedUidTestCases[secondary_user], CtsJobSchedulerTestCases, CtsJobSchedulerTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -37,6 +29,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=9000)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.32 b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.32
index 038f24ff00..b87c5c9d34 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.32
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.32
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.x86.CtsMediaTestCases.32'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases, CtsMediaTestCases[instant] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=39600)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.64 b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.64
index 907bb4981c..45ab5b70d0 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.64
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.64
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.x86.CtsMediaTestCases.64'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases, CtsMediaTestCases[instant] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=39600)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.ctshardware b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.ctshardware
index cbfdbf3585..ccb9685a61 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.ctshardware
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsMediaTestCases.ctshardware
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.x86.CtsMediaTestCases.ctshardware'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=36000)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsOs b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsOs
index 88d7d479a4..b616a25a14 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsOs
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsOs
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.x86.CtsOs'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsOsHostTestCases, CtsOsHostTestCases[instant], CtsOsHostTestCases[secondary_user], CtsOsTestCases, CtsOsTestCases[instant] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -37,6 +29,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=10800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsProvider b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsProvider
index 31407c43cf..7adb01bad3 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsProvider
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsProvider
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.x86.CtsProvider'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsProviderTestCases, CtsProviderTestCases[secondary_user], CtsProviderUiTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -37,6 +29,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='DEV',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=7200)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsSensor b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsSensor
index efb91195de..f845c4c2a7 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsSensor
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsSensor
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsSensorTestCases, CtsSensorTestCases[instant], CtsSensorTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsSensorTestCases.ctshardware b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsSensorTestCases.ctshardware
index 0b42377b88..1cc977a4b4 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.CtsSensorTestCases.ctshardware
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.CtsSensorTestCases.ctshardware
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsSensorTestCases of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsAccessibilityTestCases_-_CtsCameraApi25TestCases b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsAccessibilityTestCases_-_CtsCameraApi25TestCases
index 4fb3b4627b..9c69bd537f 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsAccessibilityTestCases_-_CtsCameraApi25TestCases
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsAccessibilityTestCases_-_CtsCameraApi25TestCases
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsAccessibilityTestCases, CtsAccessibilityTestCases[instant], CtsAccessibilityTestCases[secondary_user], CtsAccountManagerTestCases, CtsAccountManagerTestCases[instant], CtsAccountManagerTestCases[secondary_user], CtsAccountsHostTestCases, CtsAccountsHostTestCases[instant], CtsAccountsHostTestCases[secondary_user], CtsActivityManagerBackgroundActivityTestCases, CtsActivityManagerBackgroundActivityTestCases[secondary_user], CtsAdbHostTestCases, CtsAdbHostTestCases[secondary_user], CtsAdbManagerHostTestCases, CtsAdbManagerHostTestCases[secondary_user], CtsAdminPackageInstallerTestCases, CtsAdminTestCases, CtsAlarmManagerTestCases, CtsAlarmManagerTestCases[instant], CtsAlarmManagerTestCases[secondary_user], CtsAndroidAppTestCases, CtsAndroidAppTestCases[instant], CtsAndroidAppTestCases[secondary_user], CtsAndroidTestBase28ApiSignatureTestCases, CtsAndroidTestBase28ApiSignatureTestCases[instant], CtsAndroidTestBase28ApiSignatureTestCases[secondary_user], CtsAndroidTestBaseCurrentApiSignatureTestCases, CtsAndroidTestBaseCurrentApiSignatureTestCases[instant], CtsAndroidTestBaseCurrentApiSignatureTestCases[secondary_user], CtsAndroidTestMockCurrentApiSignatureTestCases, CtsAndroidTestMockCurrentApiSignatureTestCases[instant], CtsAndroidTestMockCurrentApiSignatureTestCases[secondary_user], CtsAndroidTestRunnerCurrentApiSignatureTestCases, CtsAndroidTestRunnerCurrentApiSignatureTestCases[instant], CtsAndroidTestRunnerCurrentApiSignatureTestCases[secondary_user], CtsAngleIntegrationHostTestCases, CtsAngleIntegrationHostTestCases[instant], CtsAngleIntegrationHostTestCases[secondary_user], CtsAnimationTestCases, CtsAnimationTestCases[instant], CtsAnimationTestCases[secondary_user], CtsApacheHttpLegacy27ApiSignatureTestCases, CtsApacheHttpLegacy27ApiSignatureTestCases[instant], CtsApacheHttpLegacy27ApiSignatureTestCases[secondary_user], CtsApacheHttpLegacyCurrentApiSignatureTestCases, CtsApacheHttpLegacyCurrentApiSignatureTestCases[instant], CtsApacheHttpLegacyCurrentApiSignatureTestCases[secondary_user], CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases, CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases[instant], CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases[secondary_user], CtsApexTestCases, CtsApexTestCases[secondary_user], CtsAppBindingHostTestCases, CtsAppBindingHostTestCases[secondary_user], CtsAppCompatHostTestCases, CtsAppCompatHostTestCases[instant], CtsAppCompatHostTestCases[secondary_user], CtsAppComponentFactoryTestCases, CtsAppComponentFactoryTestCases[instant], CtsAppComponentFactoryTestCases[secondary_user], CtsAppEnumerationTestCases, CtsAppEnumerationTestCases[secondary_user], CtsAppExitTestCases, CtsAppExitTestCases[instant], CtsAppExitTestCases[secondary_user], CtsAppIntegrityDeviceTestCases, CtsAppOpsTestCases, CtsAppOpsTestCases[instant], CtsAppOpsTestCases[secondary_user], CtsAppPredictionServiceTestCases, CtsAppPredictionServiceTestCases[secondary_user], CtsAppSecurityHostTestCases, CtsAppSecurityHostTestCases[secondary_user], CtsAppTestCases, CtsAppTestCases[instant], CtsAppTestCases[secondary_user], CtsAppUsageHostTestCases, CtsAppUsageHostTestCases[instant], CtsAppUsageHostTestCases[secondary_user], CtsAppWidgetTestCases, CtsAppWidgetTestCases[instant], CtsAppWidgetTestCases[secondary_user], CtsAslrMallocTestCases, CtsAslrMallocTestCases[secondary_user], CtsAssistTestCases, CtsAssistTestCases[instant], CtsAssistTestCases[secondary_user], CtsAtomicInstallTestCases, CtsAtomicInstallTestCases[secondary_user], CtsAtraceHostTestCases, CtsAtraceHostTestCases[instant], CtsAtraceHostTestCases[secondary_user], CtsAttentionServiceDeviceTestCases, CtsAttentionServiceDeviceTestCases[secondary_user], CtsAutoFillServiceTestCases, CtsAutoFillServiceTestCases[instant], CtsAutoFillServiceTestCases[secondary_user], CtsBackgroundRestrictionsTestCases, CtsBackgroundRestrictionsTestCases[instant], CtsBackgroundRestrictionsTestCases[secondary_user], CtsBackupHostTestCases, CtsBackupTestCases, CtsBatterySavingTestCases, CtsBatterySavingTestCases[secondary_user], CtsBionicAppTestCases, CtsBionicAppTestCases[instant], CtsBionicAppTestCases[secondary_user], CtsBionicTestCases, CtsBionicTestCases[secondary_user], CtsBlobStoreHostTestCases, CtsBlobStoreHostTestCases[secondary_user], CtsBlobStoreHostTestHelper, CtsBlobStoreHostTestHelper[secondary_user], CtsBlobStoreTestCases, CtsBlobStoreTestCases[secondary_user], CtsBlobStoreTestHelper, CtsBlobStoreTestHelperDiffSig, CtsBlobStoreTestHelperDiffSig2, CtsBlobStoreTestHelperDiffSig2[secondary_user], CtsBlobStoreTestHelperDiffSig[secondary_user], CtsBlobStoreTestHelper[secondary_user], CtsBluetoothTestCases, CtsBluetoothTestCases[secondary_user], CtsBootStatsTestCases, CtsBootStatsTestCases[secondary_user], CtsCalendarProviderTestCases, CtsCalendarProviderTestCases[secondary_user], CtsCalendarcommon2TestCases, CtsCalendarcommon2TestCases[secondary_user], CtsCameraApi25TestCases, CtsCameraApi25TestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except:
@@ -39,6 +43,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
hard_reboot_on_failure=True,
timeout=172800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases
index 1eaba5d3fb..710fcc48f3 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.x86.all.CtsFragmentTestCases_-_CtsJobSchedulerTestCases'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsFragmentTestCases, CtsFragmentTestCasesSdk26, CtsFragmentTestCasesSdk26[instant], CtsFragmentTestCasesSdk26[secondary_user], CtsFragmentTestCases[instant], CtsFragmentTestCases[secondary_user], CtsFsMgrTestCases, CtsFsMgrTestCases[secondary_user], CtsGestureTestCases, CtsGestureTestCases[instant], CtsGestureTestCases[secondary_user], CtsGpuProfilingDataTestCases, CtsGpuProfilingDataTestCases[secondary_user], CtsGpuToolsHostTestCases, CtsGpuToolsHostTestCases[secondary_user], CtsGraphicsTestCases, CtsGraphicsTestCases[instant], CtsGraphicsTestCases[secondary_user], CtsGwpAsanTestCases, CtsGwpAsanTestCases[instant], CtsGwpAsanTestCases[secondary_user], CtsHardwareTestCases, CtsHardwareTestCases[secondary_user], CtsHarmfulAppWarningHostTestCases, CtsHarmfulAppWarningHostTestCases[secondary_user], CtsHdmiCecHostTestCases, CtsHdmiCecHostTestCases[secondary_user], CtsHiddenApiBlacklistApi27TestCases, CtsHiddenApiBlacklistApi27TestCases[secondary_user], CtsHiddenApiBlacklistApi28TestCases, CtsHiddenApiBlacklistApi28TestCases[secondary_user], CtsHiddenApiBlacklistCurrentApiTestCases, CtsHiddenApiBlacklistCurrentApiTestCases[secondary_user], CtsHiddenApiBlacklistDebugClassTestCases, CtsHiddenApiBlacklistDebugClassTestCases[secondary_user], CtsHiddenApiBlacklistTestApiTestCases, CtsHiddenApiBlacklistTestApiTestCases[secondary_user], CtsHiddenApiKillswitchDebugClassTestCases, CtsHiddenApiKillswitchDebugClassTestCases[instant], CtsHiddenApiKillswitchDebugClassTestCases[secondary_user], CtsHiddenApiKillswitchWhitelistTestCases, CtsHiddenApiKillswitchWhitelistTestCases[instant], CtsHiddenApiKillswitchWhitelistTestCases[secondary_user], CtsHiddenApiKillswitchWildcardTestCases, CtsHiddenApiKillswitchWildcardTestCases[instant], CtsHiddenApiKillswitchWildcardTestCases[secondary_user], CtsHostTzDataTests, CtsHostTzDataTests[secondary_user], CtsHostsideNetworkTests, CtsHostsideNetworkTests[instant], CtsHostsideNetworkTests[secondary_user], CtsHostsideNumberBlockingTestCases, CtsHostsideNumberBlockingTestCases[secondary_user], CtsHostsideTvTests, CtsHostsideTvTests[secondary_user], CtsHostsideWebViewTests, CtsHostsideWebViewTests[instant], CtsHostsideWebViewTests[secondary_user], CtsIcuTestCases, CtsIcuTestCases[secondary_user], CtsIdentityTestCases, CtsIdentityTestCases[secondary_user], CtsIkeTestCases, CtsIkeTestCases[secondary_user], CtsIncidentHostTestCases, CtsIncidentHostTestCases[instant], CtsIncrementalInstallHostTestCases, CtsIncrementalInstallHostTestCases[secondary_user], CtsInitTestCases, CtsInitTestCases[secondary_user], CtsInlineMockingTestCases, CtsInlineMockingTestCases[instant], CtsInlineMockingTestCases[secondary_user], CtsInputMethodServiceHostTestCases, CtsInputMethodServiceHostTestCases[instant], CtsInputMethodServiceHostTestCases[secondary_user], CtsInputMethodTestCases, CtsInputMethodTestCases[instant], CtsInputMethodTestCases[secondary_user], CtsInstantAppTests, CtsInstantAppTests[secondary_user], CtsIntentSignatureTestCases, CtsIntentSignatureTestCases[secondary_user], CtsJdwpSecurityHostTestCases, CtsJdwpSecurityHostTestCases[secondary_user], CtsJdwpTestCases, CtsJdwpTestCases[instant], CtsJdwpTestCases[secondary_user], CtsJdwpTunnelHostTestCases, CtsJdwpTunnelHostTestCases[secondary_user], CtsJniTestCases, CtsJniTestCases[instant], CtsJniTestCases[secondary_user], CtsJobSchedulerSharedUidTestCases, CtsJobSchedulerSharedUidTestCases[secondary_user], CtsJobSchedulerTestCases, CtsJobSchedulerTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=172800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.32 b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.32
index 8057efebee..928934a3ae 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.32
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.32
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.32'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases, CtsMediaTestCases[instant] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -39,6 +31,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=172800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.64 b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.64
index d6f25b7b12..1ea9449adf 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.64
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.64
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.x86.all.CtsMediaTestCases_-_CtsMediaTestCases.64'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaTestCases, CtsMediaTestCases[instant] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -39,6 +31,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=172800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaV2TestCases_-_CtsProtoTestCases b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaV2TestCases_-_CtsProtoTestCases
index 8501885217..1eb6e062a3 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaV2TestCases_-_CtsProtoTestCases
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsMediaV2TestCases_-_CtsProtoTestCases
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.x86.all.CtsMediaV2TestCases_-_CtsProtoTestCases'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsMediaV2TestCases, CtsMidiTestCases, CtsMimeMapTestCases, CtsMimeMapTestCases[secondary_user], CtsMockingDebuggableTestCases, CtsMockingDebuggableTestCases[instant], CtsMockingDebuggableTestCases[secondary_user], CtsMockingTestCases, CtsMockingTestCases[instant], CtsMockingTestCases[secondary_user], CtsMonkeyTestCases, CtsMonkeyTestCases[secondary_user], CtsMultiUserHostTestCases, CtsMultiUserHostTestCases[instant], CtsMultiUserHostTestCases[secondary_user], CtsMultiUserTestCases, CtsMultiUserTestCases[instant], CtsMultiUserTestCases[secondary_user], CtsNNAPIBenchmarkTestCases, CtsNNAPIBenchmarkTestCases[instant], CtsNNAPIBenchmarkTestCases[secondary_user], CtsNNAPITestCases, CtsNNAPITestCases[secondary_user], CtsNativeEncryptionTestCases, CtsNativeEncryptionTestCases[instant], CtsNativeEncryptionTestCases[secondary_user], CtsNativeHardwareTestCases, CtsNativeHardwareTestCases[secondary_user], CtsNativeMediaAAudioTestCases, CtsNativeMediaAAudioTestCases[instant], CtsNativeMediaAAudioTestCases[secondary_user], CtsNativeMediaMetricsTestCases, CtsNativeMediaMetricsTestCases[instant], CtsNativeMediaMetricsTestCases[secondary_user], CtsNativeMediaSlTestCases, CtsNativeMediaSlTestCases[instant], CtsNativeMediaSlTestCases[secondary_user], CtsNativeMediaXaTestCases, CtsNativeMediaXaTestCases[instant], CtsNativeMediaXaTestCases[secondary_user], CtsNativeMidiTestCases, CtsNativeMidiTestCases[secondary_user], CtsNativeNetDnsTestCases, CtsNativeNetDnsTestCases[instant], CtsNativeNetDnsTestCases[secondary_user], CtsNativeNetTestCases, CtsNativeNetTestCases[instant], CtsNativeNetTestCases[secondary_user], CtsNdefTestCases, CtsNdefTestCases[secondary_user], CtsNdkBinderTestCases, CtsNdkBinderTestCases[instant], CtsNdkBinderTestCases[secondary_user], CtsNetApi23TestCases, CtsNetApi23TestCases[secondary_user], CtsNetSecConfigAttributeTestCases, CtsNetSecConfigAttributeTestCases[instant], CtsNetSecConfigAttributeTestCases[secondary_user], CtsNetSecConfigBasicDebugDisabledTestCases, CtsNetSecConfigBasicDebugDisabledTestCases[instant], CtsNetSecConfigBasicDebugDisabledTestCases[secondary_user], CtsNetSecConfigBasicDebugEnabledTestCases, CtsNetSecConfigBasicDebugEnabledTestCases[instant], CtsNetSecConfigBasicDebugEnabledTestCases[secondary_user], CtsNetSecConfigBasicDomainConfigTestCases, CtsNetSecConfigBasicDomainConfigTestCases[instant], CtsNetSecConfigBasicDomainConfigTestCases[secondary_user], CtsNetSecConfigCleartextTrafficTestCases, CtsNetSecConfigCleartextTrafficTestCases[instant], CtsNetSecConfigCleartextTrafficTestCases[secondary_user], CtsNetSecConfigDownloadManagerTestCases, CtsNetSecConfigDownloadManagerTestCases[secondary_user], CtsNetSecConfigInvalidPinTestCases, CtsNetSecConfigInvalidPinTestCases[instant], CtsNetSecConfigInvalidPinTestCases[secondary_user], CtsNetSecConfigNestedDomainConfigTestCases, CtsNetSecConfigNestedDomainConfigTestCases[instant], CtsNetSecConfigNestedDomainConfigTestCases[secondary_user], CtsNetSecConfigPrePCleartextTrafficTestCases, CtsNetSecConfigPrePCleartextTrafficTestCases[secondary_user], CtsNetSecConfigResourcesSrcTestCases, CtsNetSecConfigResourcesSrcTestCases[instant], CtsNetSecConfigResourcesSrcTestCases[secondary_user], CtsNetSecPolicyUsesCleartextTrafficFalseTestCases, CtsNetSecPolicyUsesCleartextTrafficFalseTestCases[secondary_user], CtsNetSecPolicyUsesCleartextTrafficTrueTestCases, CtsNetSecPolicyUsesCleartextTrafficTrueTestCases[secondary_user], CtsNetSecPolicyUsesCleartextTrafficUnspecifiedTestCases, CtsNetSecPolicyUsesCleartextTrafficUnspecifiedTestCases[secondary_user], CtsNetTestCases, CtsNetTestCasesInternetPermission, CtsNetTestCasesInternetPermission[instant], CtsNetTestCasesInternetPermission[secondary_user], CtsNetTestCasesLegacyApi22, CtsNetTestCasesLegacyApi22[secondary_user], CtsNetTestCasesLegacyPermission22, CtsNetTestCasesLegacyPermission22[secondary_user], CtsNetTestCasesUpdateStatsPermission, CtsNetTestCasesUpdateStatsPermission[instant], CtsNetTestCasesUpdateStatsPermission[secondary_user], CtsNetTestCases[instant], CtsNetTestCases[secondary_user], CtsNfcTestCases, CtsNfcTestCases[secondary_user], CtsNoPermissionTestCases, CtsNoPermissionTestCases25, CtsNoPermissionTestCases25[secondary_user], CtsNoPermissionTestCases[secondary_user], CtsOmapiTestCases, CtsOmapiTestCases[secondary_user], CtsOpenGLTestCases, CtsOpenGLTestCases[secondary_user], CtsOpenGlPerf2TestCases, CtsOpenGlPerf2TestCases[secondary_user], CtsOpenGlPerfTestCases, CtsOsHostTestCases, CtsOsHostTestCases[instant], CtsOsHostTestCases[secondary_user], CtsOsTestCases, CtsOsTestCases[instant], CtsPackageInstallAppOpDefaultTestCases, CtsPackageInstallAppOpDefaultTestCases[instant], CtsPackageInstallAppOpDefaultTestCases[secondary_user], CtsPackageInstallAppOpDeniedTestCases, CtsPackageInstallAppOpDeniedTestCases[instant], CtsPackageInstallAppOpDeniedTestCases[secondary_user], CtsPackageInstallTestCases, CtsPackageInstallTestCases[instant], CtsPackageInstallTestCases[secondary_user], CtsPackageInstallerTapjackingTestCases, CtsPackageInstallerTapjackingTestCases[secondary_user], CtsPackageUninstallTestCases, CtsPackageUninstallTestCases[secondary_user], CtsPackageWatchdogTestCases, CtsPackageWatchdogTestCases[secondary_user], CtsPdfTestCases, CtsPdfTestCases[instant], CtsPdfTestCases[secondary_user], CtsPerfettoTestCases, CtsPerfettoTestCases[secondary_user], CtsPermission2TestCases, CtsPermission2TestCases[instant], CtsPermission3TestCases, CtsPermission3TestCases[secondary_user], CtsPermissionTestCases, CtsPermissionTestCasesSdk28, CtsPermissionTestCasesSdk28[instant], CtsPermissionTestCasesSdk28[secondary_user], CtsPermissionTestCasesTelephony, CtsPermissionTestCasesTelephony[instant], CtsPermissionTestCasesTelephony[secondary_user], CtsPermissionTestCases[instant], CtsPreferenceTestCases, CtsPreferenceTestCases[instant], CtsPreferenceTestCases[secondary_user], CtsPrintTestCases, CtsPrintTestCases[instant], CtsPrintTestCases[secondary_user], CtsProtoTestCases, CtsProtoTestCases[instant], CtsProtoTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -39,6 +31,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=172800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsProviderTestCases_-_CtsSecurityBulletinHostTestCases b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsProviderTestCases_-_CtsSecurityBulletinHostTestCases
index 1a22cca310..7d50bac1e7 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsProviderTestCases_-_CtsSecurityBulletinHostTestCases
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsProviderTestCases_-_CtsSecurityBulletinHostTestCases
@@ -3,7 +3,6 @@
# found in the LICENSE file.
# This file has been automatically generated. Do not edit!
-from autotest_lib.server import utils as server_utils
AUTHOR = 'ARC++ Team'
NAME = 'cheets_CTS_R.internal.x86.all.CtsProviderTestCases_-_CtsSecurityBulletinHostTestCases'
@@ -16,15 +15,8 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsProviderTestCases, CtsProviderTestCases[secondary_user], CtsProviderUiTestCases, CtsQuickAccessWalletTestCases, CtsQuickAccessWalletTestCases[instant], CtsQuickAccessWalletTestCases[secondary_user], CtsRenderscriptLegacyTestCases, CtsRenderscriptLegacyTestCases[secondary_user], CtsRenderscriptTestCases, CtsRenderscriptTestCases[instant], CtsRenderscriptTestCases[secondary_user], CtsResolverServiceTestCases, CtsResolverServiceTestCases[secondary_user], CtsResourcesLoaderTests, CtsResourcesLoaderTests[secondary_user], CtsRoleTestCases, CtsRoleTestCases[secondary_user], CtsRollbackManagerHostTestCases, CtsRsBlasTestCases, CtsRsBlasTestCases[secondary_user], CtsRsCppTestCases, CtsRsCppTestCases[secondary_user], CtsSampleDeviceTestCases, CtsSampleDeviceTestCases[instant], CtsSampleDeviceTestCases[secondary_user], CtsSampleHostTestCases, CtsSampleHostTestCases[secondary_user], CtsSaxTestCases, CtsSaxTestCases[secondary_user], CtsScopedStorageHostTest, CtsScopedStorageHostTest[instant], CtsSdkExtensionsTestCases, CtsSdkExtensionsTestCases[instant], CtsSdkExtensionsTestCases[secondary_user], CtsSeccompHostTestCases, CtsSeccompHostTestCases[instant], CtsSeccompHostTestCases[secondary_user], CtsSecureElementAccessControlTestCases1, CtsSecureElementAccessControlTestCases1[secondary_user], CtsSecureElementAccessControlTestCases2, CtsSecureElementAccessControlTestCases2[secondary_user], CtsSecureElementAccessControlTestCases3, CtsSecureElementAccessControlTestCases3[secondary_user], CtsSecureFrpInstallTestCases, CtsSecureFrpInstallTestCases[secondary_user], CtsSecurityBulletinHostTestCases, CtsSecurityBulletinHostTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
-args_dict = server_utils.args_to_dict(args)
-servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
-
def run_TS(machine):
- try:
- host_list = [hosts.create_host(machine, servo_args=servo_args)]
- except:
- # Just ignore any servo setup flakiness.
- host_list = [hosts.create_host(machine)]
+ host_list = [hosts.create_host(machine)]
job.run_test(
'cheets_CTS_R',
hosts=host_list,
@@ -38,6 +30,7 @@ def run_TS(machine):
target_plan=None,
bundle='x86',
uri='LATEST',
+ login_precondition_commands=['lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject'],
use_jdk9=True,
timeout=172800)
diff --git a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsSensorTestCases_-_CtsSensorTestCases b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsSensorTestCases_-_CtsSensorTestCases
index 02c6d4c546..a1cd80a0f5 100644
--- a/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsSensorTestCases_-_CtsSensorTestCases
+++ b/server/site_tests/cheets_CTS_R/control.internal.x86.all.CtsSensorTestCases_-_CtsSensorTestCases
@@ -16,10 +16,14 @@ MAX_RESULT_SIZE_KB = 512000
PY_VERSION = 3
DOC = 'Run module CtsSensorTestCases, CtsSensorTestCases[instant], CtsSensorTestCases[secondary_user] of the Android Compatibility Test Suite (CTS) using x86 ABI in the ARC++ container.'
+# For local debugging, if your test setup doesn't have servo, REMOVE these
+# two lines.
args_dict = server_utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_TS(machine):
+ # REMOVE 'servo_args=servo_args' arg for local debugging if your test
+ # setup doesn't have servo.
try:
host_list = [hosts.create_host(machine, servo_args=servo_args)]
except: