From 5815f91f6a73944327aabec619970bb70009f1f8 Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Mon, 28 Apr 2008 16:48:28 +0000
Subject: [PATCH] Display in the report the start/stop dates for each clients
---
opends/tests/system-tests/phases/scheduler/scheduler.xml | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/opends/tests/system-tests/phases/scheduler/scheduler.xml b/opends/tests/system-tests/phases/scheduler/scheduler.xml
index f21aa5f..6d9d92f 100755
--- a/opends/tests/system-tests/phases/scheduler/scheduler.xml
+++ b/opends/tests/system-tests/phases/scheduler/scheduler.xml
@@ -294,6 +294,7 @@
<script>
startTime=strftime("%Y%m%d@%H:%M:%S",localtime())
+ client.setStartDate(startTime)
errNum = NOT_DEFINED
</script>
@@ -447,6 +448,7 @@
<!--=== log info ===-->
<script>
stopTime=strftime("%Y%m%d@%H:%M:%S",localtime())
+ client.setStopDate(stopTime)
</script>
<message>
'-- Stop %s client (id %s) running on %s at %s' %\
@@ -461,16 +463,21 @@
<if expr="errNum == 0">
<script>
- client.setResult('SUCCESS')
- fileFd.write('\n<clientResult status=\"SUCCESS\"/>\n')
+ result = 'SUCCESS'
</script>
<else>
<script>
- client.setResult('FAIL')
- fileFd.write('\n<clientResult status=\"FAIL\"/>\n')
+ result = 'FAIL'
</script>
</else>
</if>
+ <script>
+ client.setResult(result)
+ attrs = 'status=\"%s\" startDate=\"%s\" stopDate=\"%s\"' % \
+ (result,client.getStartDate(),client.getStopDate())
+ fileFd.write('\n<clientResult %s/>\n' % attrs)
+ </script>
+
<!-- DO NOT record number of error(s) found by clients -->
<!-- each should use checkRC and ERR_NUM[0] is already updated -->
<!-- <script>
--
Gitblit v1.10.0