Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Unified Diff: build/android/pylib/utils/isolator.py

Issue 1904823003: Generate Android .isolate files used for test()s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert to PS2 Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/android/pylib/utils/isolator.py
diff --git a/build/android/pylib/utils/isolator.py b/build/android/pylib/utils/isolator.py
index 832b4ad3c301853d13555ecbaf0bc4b39e0a5bb1..2a044aa737c911815e1d6796dada0f47542d4c9a 100644
--- a/build/android/pylib/utils/isolator.py
+++ b/build/android/pylib/utils/isolator.py
@@ -55,6 +55,12 @@ def DefaultConfigVariables():
}
+def IsIsolateEmpty(isolate_path):
+ """Returns whether there are no files in the .isolate."""
+ with open(isolate_path) as f:
+ return "'files': []" in f.read()
+
+
class Isolator(object):
"""Manages calls to isolate.py for the android test runner scripts."""
« no previous file with comments | « build/android/pylib/instrumentation/instrumentation_test_instance.py ('k') | build/config/android/internal_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698