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

Unified Diff: telemetry/telemetry/core/cros_interface.py

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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 | « telemetry/telemetry/benchmark_unittest.py ('k') | telemetry/telemetry/core/cros_interface_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/core/cros_interface.py
diff --git a/telemetry/telemetry/core/cros_interface.py b/telemetry/telemetry/core/cros_interface.py
index 9a82c8b863d641d6eec211cbc7f1fc081baa53e7..d63a9e885731bed1bf6c8567f84c11c09f686e35 100644
--- a/telemetry/telemetry/core/cros_interface.py
+++ b/telemetry/telemetry/core/cros_interface.py
@@ -306,7 +306,9 @@ class CrOSInterface(object):
if self.local:
if destfile is not None and destfile != filename:
shutil.copyfile(filename, destfile)
- return
+ return
+ else:
+ raise OSError('No such file or directory %s' % filename)
if destfile is None:
destfile = os.path.basename(filename)
« no previous file with comments | « telemetry/telemetry/benchmark_unittest.py ('k') | telemetry/telemetry/core/cros_interface_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698