From patchwork Wed Aug 17 22:38:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 3495 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 8724323F4D for ; Wed, 17 Aug 2011 22:38:21 +0000 (UTC) Received: from mail-ew0-f52.google.com (mail-ew0-f52.google.com [209.85.215.52]) by fiordland.canonical.com (Postfix) with ESMTP id 9A335A181BB for ; Wed, 17 Aug 2011 22:38:20 +0000 (UTC) Received: by ewy28 with SMTP id 28so788818ewy.11 for ; Wed, 17 Aug 2011 15:38:20 -0700 (PDT) Received: by 10.213.14.67 with SMTP id f3mr1505769eba.56.1313620700208; Wed, 17 Aug 2011 15:38:20 -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.213.102.5 with SMTP id e5cs46479ebo; Wed, 17 Aug 2011 15:38:19 -0700 (PDT) Received: by 10.216.237.35 with SMTP id x35mr4715823weq.76.1313620694393; Wed, 17 Aug 2011 15:38:14 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com [91.189.90.7]) by mx.google.com with ESMTPS id u49si4144566weq.29.2011.08.17.15.38.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Aug 2011 15:38:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QtokX-0006gk-VF for ; Wed, 17 Aug 2011 22:38:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id DF388E0304 for ; Wed, 17 Aug 2011 22:38:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-test X-Launchpad-Branch: ~linaro-validation/lava-test/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 87 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 87: Fix duplicate uuid issue Message-Id: <20110817223813.23193.53811.launchpad@ackee.canonical.com> Date: Wed, 17 Aug 2011 22:38:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13697"; Instance="initZopeless config overlay" X-Launchpad-Hash: f329ecd4dc1c97c4b423cc6b2350e759c8d3027f ------------------------------------------------------------ revno: 87 fixes bug(s): https://launchpad.net/bugs/828390 committer: Paul Larson branch nick: lava-test timestamp: Wed 2011-08-17 23:32:50 +0100 message: Fix duplicate uuid issue modified: abrek/testdef.py tests/test_dashboard.py --- lp:lava-test https://code.launchpad.net/~linaro-validation/lava-test/trunk You are subscribed to branch lp:lava-test. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-test/trunk/+edit-subscription === modified file 'abrek/testdef.py' --- abrek/testdef.py 2011-08-03 14:25:13 +0000 +++ abrek/testdef.py 2011-08-17 22:32:50 +0000 @@ -23,7 +23,7 @@ import time from commands import getstatusoutput from datetime import datetime -from uuid import uuid1 +from uuid import uuid4 from abrek import swprofile, hwprofile from abrek.api import ITest @@ -118,7 +118,7 @@ raise RuntimeError("no test runner defined for '%s'" % self.testname) config = get_config() - uuid = str(uuid1()) + uuid = str(uuid4()) installdir = os.path.join(config.installdir, self.testname) resultname = (self.testname + str(time.mktime(datetime.utcnow().timetuple()))) === modified file 'tests/test_dashboard.py' --- tests/test_dashboard.py 2011-04-19 16:53:24 +0000 +++ tests/test_dashboard.py 2011-08-17 22:32:50 +0000 @@ -15,7 +15,7 @@ import json import os -from uuid import uuid1 +from uuid import uuid4 from abrek.dashboard import ( DashboardConfig, cmd_dashboard, @@ -174,7 +174,7 @@ Make a fake set of test results for the stream test """ testname = "stream000" - testuuid = str(uuid1()) + testuuid = str(uuid4()) testdata_data = """ { "format": "Dashboard Bundle Format 1.2",