From 9102fb4a9835fef82bf3ac490b9649b46f436e2a Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Tue, 11 Dec 2007 18:52:16 +0000
Subject: [PATCH] allow silent mode (default value) for runcmd() and addEntry()

---
 opendj-sdk/opends/tests/shared/functions/utils.xml |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/opendj-sdk/opends/tests/shared/functions/utils.xml b/opendj-sdk/opends/tests/shared/functions/utils.xml
index 471cf6b..c9559eb 100755
--- a/opendj-sdk/opends/tests/shared/functions/utils.xml
+++ b/opendj-sdk/opends/tests/shared/functions/utils.xml
@@ -1430,6 +1430,12 @@
           The duration that the process is allowed to run
         </function-arg-description>
       </function-arg-def>      
+      <function-arg-def name="verbose" default="False" type="optional">
+        <function-arg-description>
+          A boolean (use True or False here, case matters) to output the 
+          outputs of the command
+        </function-arg-description>
+      </function-arg-def>
     </function-map-args>
     <sequence>
       <script>
@@ -1461,9 +1467,11 @@
           </process>
       </block>
       
-      <message level="'info'">
-        '%s: Command returned:\n%s' % (_id,STAXResult[0][1])
-      </message>
+      <if expr="verbose == True">
+        <message level="'info'">
+          '%s: Command returned:\n%s' % (_id,STAXResult[0][1])
+        </message>
+      </if>
       <script>
         def dig(var):
           try:

--
Gitblit v1.10.0