From 79c38fbbda86995b5f890bdb60efc65fea328e55 Mon Sep 17 00:00:00 2001
From: gary_williams <gary_williams@localhost>
Date: Tue, 21 Aug 2007 15:36:56 +0000
Subject: [PATCH] runCommand can have non unique block name
---
opends/tests/functional-tests/shared/functions/utils.xml | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/opends/tests/functional-tests/shared/functions/utils.xml b/opends/tests/functional-tests/shared/functions/utils.xml
index 8a91f0f..163ed9f 100755
--- a/opends/tests/functional-tests/shared/functions/utils.xml
+++ b/opends/tests/functional-tests/shared/functions/utils.xml
@@ -1283,11 +1283,12 @@
<sequence>
<script>
import random
- random.seed()
- _id = '%s#%d' % (strftime('%Y-%m-%d %H:%M:%S',localtime()),random.randint(0,9))
+ import java.util.Date
+ random.seed(java.util.Date().getTime())
+ _id = '%s#%d' % (strftime('%Y-%m-%d %H:%M:%S',localtime()),random.randint(0,999))
</script>
<message>
- '%s: Running command:\n %s %s\nenv: %s\nworkdir: %s' % (_id,command,arguments,env,path)
+ '%s: Running command:\n %s %s\nlocation: %s\nenv: %s\nworkdir: %s' % (_id,command,arguments,location,env,path)
</message>
<block name="'%s:Wrapper for %s' % (_id,re.compile('\..*$').sub('',os.path.basename(command)))">
--
Gitblit v1.10.0