|
Reland r212020: Move Python setup/tear down logic into Forwarder ...
The initial attempt caused flakiness (random deadlocks). It turns out that
testserver.py was inheriting undesirable file descriptors when it was spawned
(including file lock file descriptors). Closing the unnecessary file
descriptors between fork() and exec() solves the problem.
Forwarder used to be a pain to setup/tear down across all the various
harnesses.
This CL should hopefully solve these issues by hiding these
implementation details. The host daemon is now killed once the first time that
the Forwarder class is used and the daemon running on the devices is also
killed the first time a port is forwarded for a specific device.
TBR=bulach@chromium.org
BUG= 242846
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215023
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+269 lines, -169 lines) |
Patch |
|
M |
build/android/adb_reverse_forwarder.py
|
View
|
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
|
M |
build/android/bb_run_sharded_steps.py
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
build/android/pylib/base/base_test_runner.py
|
View
|
|
4 chunks |
+18 lines, -24 lines |
0 comments
|
Download
|
|
M |
build/android/pylib/base/test_dispatcher.py
|
View
|
|
3 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
build/android/pylib/chrome_test_server_spawner.py
|
View
|
1
|
9 chunks |
+19 lines, -12 lines |
0 comments
|
Download
|
|
M |
build/android/pylib/forwarder.py
|
View
|
|
5 chunks |
+211 lines, -82 lines |
0 comments
|
Download
|
|
M |
build/android/pylib/host_driven/python_test_sharder.py
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
build/android/pylib/instrumentation/test_runner.py
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/test/chromedriver/run_py_tests.py
|
View
|
|
1 chunk |
+4 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/test/chromedriver/test_environment.py
|
View
|
|
1 chunk |
+3 lines, -8 lines |
0 comments
|
Download
|
|
M |
tools/telemetry/telemetry/core/chrome/adb_commands.py
|
View
|
|
2 chunks |
+5 lines, -16 lines |
0 comments
|
Download
|
|
M |
tools/telemetry/telemetry/core/chrome/android_browser_backend.py
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|