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

Unified Diff: webrtc/examples/androidtests/gradle_project_test.py

Issue 2876803002: Do not delete temporary directory if user specified it manually. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/examples/androidtests/gradle_project_test.py
diff --git a/webrtc/examples/androidtests/gradle_project_test.py b/webrtc/examples/androidtests/gradle_project_test.py
index 07ae5703679314311f685900ab9ddbd71aed087d..9a0621b10c2de0e441490bcc2bed3c4f1f5ae471 100644
--- a/webrtc/examples/androidtests/gradle_project_test.py
+++ b/webrtc/examples/androidtests/gradle_project_test.py
@@ -67,7 +67,9 @@ def main():
'--use-gradle-process-resources', '--split-projects'])
_RunCommand([GRADLEW_BIN, 'assembleDebug'], project_dir)
finally:
- shutil.rmtree(project_dir, True)
+ # Do not delete temporary directory if user specified it manually.
+ if not args.project_dir:
+ shutil.rmtree(project_dir, True)
if __name__ == '__main__':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698