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

Unified Diff: server/test.py

Issue 4176007: Fix server side autotests installing to the wrong directory. (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Change path back to default. Created 10 years, 1 month 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 | « server/autotest_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/test.py
diff --git a/server/test.py b/server/test.py
index 926a59503ee962a3e12012c4caf9507ae39a5bfe..6abb38fc1b035e897bafd25f4e70c2001402c560 100644
--- a/server/test.py
+++ b/server/test.py
@@ -90,32 +90,8 @@ class _sysinfo_logger(object):
self.host = hosts.create_host(self.job.machines[0],
auto_monitor=False)
try:
- # Since ChromeOS uses tmpfs (in memory fs) we don't want to let
- # Autotest use it for running tests and storing results. As an
- # additional wrinkle all fs are mounted noexec. To work around
- # this we need to setup a mount point and remount it as exec.
- client_path = "/mnt/stateful_partition/autotest"
- client_mount_path = "/home/autotest_mount"
-
- if not self.host.path_exists(client_path):
- self.host.run("mkdir " + client_path)
-
- if not self.host.path_exists(client_mount_path):
- self.host.run("mkdir " + client_mount_path)
-
- # Check for existing mount and unmount if exists.
- result = self.host.run("mount | grep -q " + client_mount_path,
- ignore_status=True)
- if result.exit_status == 0:
- self.host.run("umount " + client_mount_path)
-
- self.host.run("mount --bind %s %s" % (client_path,
- client_mount_path))
- self.host.run("mount -o remount,exec " + client_mount_path)
-
- tmp_dir = self.host.get_tmp_dir(parent=client_mount_path)
self.autotest = autotest.Autotest(self.host)
- self.autotest.install(autodir=tmp_dir)
+ self.autotest.install()
self.outputdir = self.host.get_tmp_dir()
except:
# if installation fails roll back the host
« no previous file with comments | « server/autotest_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698