From patchwork Fri Jul 1 05:41:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Spring Zhang X-Patchwork-Id: 2392 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 2A70E23F54 for ; Fri, 1 Jul 2011 05:41:30 +0000 (UTC) Received: from mail-qy0-f180.google.com (mail-qy0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id D5781A188E8 for ; Fri, 1 Jul 2011 05:41:29 +0000 (UTC) Received: by qyk30 with SMTP id 30so2047826qyk.11 for ; Thu, 30 Jun 2011 22:41:29 -0700 (PDT) Received: by 10.229.102.98 with SMTP id f34mr2306069qco.42.1309498889191; Thu, 30 Jun 2011 22:41:29 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.48.135 with SMTP id r7cs95382qcf; Thu, 30 Jun 2011 22:41:27 -0700 (PDT) Received: by 10.216.137.4 with SMTP id x4mr759130wei.53.1309498886012; Thu, 30 Jun 2011 22:41:26 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id 7si6118385wem.146.2011.06.30.22.41.25; Thu, 30 Jun 2011 22:41:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QcWTl-0005dg-Dr for ; Fri, 01 Jul 2011 05:41:25 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 6268D2E889C for ; Fri, 1 Jul 2011 05:41:25 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 73 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [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> Date: Fri, 01 Jul 2011 05:41:25 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13333"; Instance="initZopeless config overlay" X-Launchpad-Hash: 028be4a5b289b959a557fb5397484be86a2e01e1 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 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 === 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 . +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):