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

Unified Diff: bin/cros_au_test_harness.py

Issue 6380008: Pre-generate updates with root user. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: 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
« 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: bin/cros_au_test_harness.py
diff --git a/bin/cros_au_test_harness.py b/bin/cros_au_test_harness.py
index 42dcaaab93bd519809163e11ac36714977c264f7..ab71232b7ee74d129e7ab82699e2ad70dc7aca8b 100755
--- a/bin/cros_au_test_harness.py
+++ b/bin/cros_au_test_harness.py
@@ -712,13 +712,14 @@ def _PregenerateUpdates(parser, options):
"""
def _GenerateVMUpdate(target, src):
"""Generates an update using the devserver."""
- RunCommand(['./start_devserver',
+ RunCommand(['sudo',
+ './start_devserver',
'--pregenerate_update',
'--exit',
'--image=%s' % target,
'--src_image=%s' % src,
'--for_vm'
- ])
+ ], enter_chroot=True)
# Get the list of deltas by mocking out update method in test class.
GenerateVirtualAUDeltasTest.ProcessOptions(parser, options)
« 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