Update config to use self-contained python binaries

Build from source and remove need for virtualenv to
make it self-contained.

Test: presubmit, forrest (https://android-build.googleplex.com/builds/abtd/run/L76600000954930260)
Bug: 234458076
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: Ib0afb414fdeb510577345afd650fa6f0f5b3c721
(cherry picked from commit 7599806e06)
Merged-In: Ib0afb414fdeb510577345afd650fa6f0f5b3c721
This commit is contained in:
Julien Desprez
2022-06-03 10:00:12 -07:00
committed by David Duarte
parent dd813e185e
commit 87cd1d636e
2 changed files with 13 additions and 6 deletions

View File

@@ -22,7 +22,10 @@ python_test_host {
name: "NearbyMultiDevicesTestSuite",
main: "suite_main.py",
srcs: ["*.py"],
libs: ["NearbyMultiDevicesHostHelper"],
libs: [
"NearbyMultiDevicesHostHelper",
"mobly",
],
test_suites: [
"general-tests",
"mts-tethering",
@@ -38,6 +41,15 @@ python_test_host {
// Package the JSON metadata with the Mobly test.
"test_data/**/*",
],
version: {
py2: {
enabled: false,
},
py3: {
enabled: true,
embedded_launcher: true,
},
},
}
python_library_host {

View File

@@ -42,11 +42,6 @@
<option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
<option name="run-command" value="wm dismiss-keyguard" />
</target_preparer>
<target_preparer class="com.android.tradefed.targetprep.PythonVirtualenvPreparer">
<!-- Any python dependencies can be specified and will be installed with pip -->
<!-- TODO(b/225958696): Import python dependencies -->
<option name="dep-module" value="mobly" />
</target_preparer>
<target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
<option name="force-skip-system-props" value="true" /> <!-- avoid restarting device -->
<option name="screen-always-on" value="on" />