Index: build/android/pylib/instrumentation/instrumentation_test_instance.py |
diff --git a/build/android/pylib/instrumentation/instrumentation_test_instance.py b/build/android/pylib/instrumentation/instrumentation_test_instance.py |
index 3a69c36acec87fcbe654d1be1648e1ad93bcc937..e72b8941c794d3fbf9dfa4dff2806352a18dee3e 100644 |
--- a/build/android/pylib/instrumentation/instrumentation_test_instance.py |
+++ b/build/android/pylib/instrumentation/instrumentation_test_instance.py |
@@ -516,6 +516,8 @@ class InstrumentationTestInstance(test_instance.TestInstance): |
args.strict_mode and |
args.strict_mode != 'off'): |
self._flags.append('--strict-mode=' + args.strict_mode) |
+ if hasattr(args, 'regenerate_goldens') and args.regenerate_goldens: |
+ self._flags.append('--regenerate-goldens') |
def _initializeDriverAttributes(self): |
self._driver_apk = os.path.join( |