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

Unified Diff: server/autotest.py

Issue 6246035: Merge remote branch 'cros/upstream' into master (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 11 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: server/autotest.py
diff --git a/server/autotest.py b/server/autotest.py
index eb250952ba7bdd58d565ef230e54e5fd6342e684..74a76c724091ee970b82385518711b3ee0ab95ab 100644
--- a/server/autotest.py
+++ b/server/autotest.py
@@ -76,6 +76,7 @@ class BaseAutotest(installable_object.InstallableObject):
try:
autotest_binary = os.path.join(path, 'bin', 'autotest')
host.run('test -x %s' % utils.sh_escape(autotest_binary))
+ host.run('test -w %s' % utils.sh_escape(path))
logging.debug('Found existing autodir at %s', path)
return path
except error.AutoservRunError:
@@ -109,6 +110,7 @@ class BaseAutotest(installable_object.InstallableObject):
for path in client_autodir_paths:
try:
host.run('mkdir -p %s' % utils.sh_escape(path))
+ host.run('test -w %s' % utils.sh_escape(path))
return path
except error.AutoservRunError:
logging.debug('Failed to create %s', path)
« cli/job.py ('K') | « server/autoserv_parser.py ('k') | server/autotest_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698