diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 370: don't run linaro-android-media-create with sudo

Message ID 20120813230017.25108.66813.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Andy Doan Aug. 13, 2012, 11 p.m. UTC
Merge authors:
  Alexander Sack (asac)
Related merge proposals:
  https://code.launchpad.net/~asac/lava-dispatcher/drop-redundant-sudo-lamc/+merge/119105
  proposed by: Alexander Sack (asac)
------------------------------------------------------------
revno: 370 [merge]
committer: Andy Doan <andy.doan@linaro.org>
branch nick: lava-dispatcher
timestamp: Mon 2012-08-13 17:58:53 -0500
message:
  don't run linaro-android-media-create with sudo
modified:
  lava_dispatcher/client/lmc_utils.py


--
lp:lava-dispatcher
https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk

You are subscribed to branch lp:lava-dispatcher.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_dispatcher/client/lmc_utils.py'
--- lava_dispatcher/client/lmc_utils.py	2012-07-22 00:43:26 +0000
+++ lava_dispatcher/client/lmc_utils.py	2012-08-10 10:18:06 +0000
@@ -106,10 +106,10 @@ 
     _run_linaro_media_create(cmd)
 
 def generate_android_image(device, boot, data, system, ofile, size="2000M"):
-    cmd = ("flock /var/lock/lava-lmc.lck sudo linaro-android-media-create "
+    cmd = ("flock /var/lock/lava-lmc.lck linaro-android-media-create "
            "--dev %s --image_file %s --image_size %s "
            "--boot %s --userdata %s --system %s" %
-            (device, ofile, size, boot, data,system) )
+            (device, ofile, size, boot, data, system) )
     logging.info("Generating android image with: %s" % cmd)
     _run_linaro_media_create(cmd)