diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 154: Add l-m-c version to metadata

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

Commit Message

Spring Zhang Nov. 8, 2011, 6:57 a.m. UTC
Merge authors:
  Spring Zhang (qzhang)
Related merge proposals:
  https://code.launchpad.net/~qzhang/lava-dispatcher/fix-886102/+merge/81324
  proposed by: Spring Zhang (qzhang)
  review: Approve - Yongqin Liu (liuyq0307)
------------------------------------------------------------
revno: 154 [merge]
committer: Spring Zhang <spring.zhang@linaro.org>
branch nick: fix-886102
timestamp: Tue 2011-11-08 01:53:51 -0500
message:
  Add l-m-c version to metadata
modified:
  lava_dispatcher/actions/deploy.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/actions/deploy.py'
--- lava_dispatcher/actions/deploy.py	2011-10-20 15:20:56 +0000
+++ lava_dispatcher/actions/deploy.py	2011-11-08 05:23:50 +0000
@@ -155,6 +155,13 @@ 
             logging.info("Downloading the %s file" % rootfs_url)
             rootfs_path = download(rootfs_url, tarball_dir)
 
+        logging.info("linaro-media-create version information")
+        cmd = "sudo linaro-media-create -v"
+        rc, output = getstatusoutput(cmd)
+        metadata = self.context.test_data.get_metadata()
+        metadata['target.linaro-media-create-version'] = output
+        self.context.test_data.add_metadata(metadata)
+
         image_file = os.path.join(tarball_dir, "lava.img")
         #XXX Hack for removing startupfiles from snowball hwpacks
         if client.device_type == "snowball_sd":