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

Unified Diff: server/autotest_unittest.py

Issue 5867003: Remount autodir after reboot. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 10 years 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
« server/autotest.py ('K') | « server/autotest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/autotest_unittest.py
diff --git a/server/autotest_unittest.py b/server/autotest_unittest.py
index 7374f0f8b219ef0e1e6aa0920ecfda5fae869e70..749b6dd9d8e833fac3c6e0c12719544b86d4871b 100755
--- a/server/autotest_unittest.py
+++ b/server/autotest_unittest.py
@@ -101,6 +101,10 @@ class TestBaseAutotest(unittest.TestCase):
self.host.wait_up.expect_call(timeout=30)
self.host.setup.expect_call()
self.host.get_autodir.expect_call().and_return("autodir")
+ result = client_utils.CmdResult()
+ result.exit_status = 0
+ self.host.run.expect_call('mount | grep -q autodir',
+ ignore_status=True).and_return(result)
self.host.set_autodir.expect_call("autodir")
self.host.run.expect_call('mkdir -p autodir')
self.host.run.expect_call('rm -rf autodir/results/*',
« server/autotest.py ('K') | « server/autotest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698