From a53a0b38214c0bc708fa0e9c1e6a22aae4158ec0 Mon Sep 17 00:00:00 2001
From: Gary Williams <gary.williams@forgerock.com>
Date: Mon, 19 Mar 2012 17:59:33 +0000
Subject: [PATCH] Functional tests show tail of error log on stopping server
---
opends/tests/staf-tests/shared/python/common.py | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/opends/tests/staf-tests/shared/python/common.py b/opends/tests/staf-tests/shared/python/common.py
index 4a54c8e..b50c9bf 100644
--- a/opends/tests/staf-tests/shared/python/common.py
+++ b/opends/tests/staf-tests/shared/python/common.py
@@ -24,7 +24,7 @@
#
#
# Copyright 2007-2009 Sun Microsystems, Inc.
-# Portions Copyright 2011 ForgeRock AS.
+# Portions Copyright 2011-2012 ForgeRock AS.
__version__ = "$Revision$"
# $Source$
@@ -57,7 +57,8 @@
"host_is_localhost" ,
"md5_hash" ,
"value_not_string" ,
- "get_system_uid"
+ "get_system_uid" ,
+ "date_compare"
]
class format_testcase:
@@ -881,3 +882,10 @@
from java.lang import System
return System.getProperty("user.name")
+def date_compare(date1,date2):
+ if date1.compareTo(date2) > 0:
+ return "Greater"
+ elif date1.compareTo(date2) < 0:
+ return "Less"
+ else:
+ return "Equal"
--
Gitblit v1.10.0