diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 73: add timestamp to result bundle name in case same bundle file overwrited

Message ID 20110701054125.20327.11230.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

Spring Zhang July 1, 2011, 5:41 a.m. UTC
Merge authors:
  Spring Zhang (qzhang)
Related merge proposals:
  https://code.launchpad.net/~qzhang/lava-dispatcher/unique-bundle-name/+merge/66412
  proposed by: Spring Zhang (qzhang)
  review: Approve - Paul Larson (pwlars)
------------------------------------------------------------
revno: 73 [merge]
committer: Spring Zhang <spring.zhang@linaro.org>
branch nick: lava-dispatcher
timestamp: Fri 2011-07-01 13:38:44 +0800
message:
  add timestamp to result bundle name in case same bundle file overwrited
modified:
  lava_dispatcher/actions/lava-test.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/lava-test.py'
--- lava_dispatcher/actions/lava-test.py	2011-06-28 14:11:21 +0000
+++ lava_dispatcher/actions/lava-test.py	2011-07-01 05:38:44 +0000
@@ -20,6 +20,7 @@ 
 # along
 # with this program; if not, see <http://www.gnu.org/licenses>.
 
+from datetime import datetime
 from lava_dispatcher.actions import BaseAction
 from lava_dispatcher.client import OperationFailed
 from lava_dispatcher.config import LAVA_RESULT_DIR, MASTER_STR, TESTER_STR
@@ -32,9 +33,10 @@ 
         client.run_shell_command('mkdir -p %s' % LAVA_RESULT_DIR,
             response = TESTER_STR)
         client.export_display()
+        bundle_name = test_name + "-" + datetime.now().strftime("%H%M%S")
         client.run_shell_command(
             'lava-test run %s -o %s/%s.bundle' % (
-                test_name, LAVA_RESULT_DIR, test_name),
+                test_name, LAVA_RESULT_DIR, bundle_name),
             response = TESTER_STR, timeout = timeout)
 
 class cmd_lava_test_install(BaseAction):