diff mbox

[Branch,~linaro-validation/lava-test/trunk] Rev 87: Fix duplicate uuid issue

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

Commit Message

Paul Larson Aug. 17, 2011, 10:38 p.m. UTC
------------------------------------------------------------
revno: 87
fixes bug(s): https://launchpad.net/bugs/828390
committer: Paul Larson <paul.larson@linaro.org>
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
diff mbox

Patch

=== 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",