From 095232999c8adc1c76f77ac7f2b1dd6f9e0a8a40 Mon Sep 17 00:00:00 2001
From: ugaston <ugaston@localhost>
Date: Wed, 06 Feb 2008 18:37:38 +0000
Subject: [PATCH] Fix killDs function (failing on Windows)

---
 opends/tests/shared/functions/utils.xml |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/opends/tests/shared/functions/utils.xml b/opends/tests/shared/functions/utils.xml
index db0c97e..69fe71d 100755
--- a/opends/tests/shared/functions/utils.xml
+++ b/opends/tests/shared/functions/utils.xml
@@ -1567,13 +1567,12 @@
       </call>
                                 
       <script>
-        pid = STAXResult[:-1]
-            
         if isWindows:
           _cmd = 'tskill'
-          _args = pid
+          _args = STAXResult
         else:
           _cmd = 'kill'
+          pid = STAXResult[:-1]
           _args = '-9 %s' % pid
       </script>
       <call function="'runCommand'">

--
Gitblit v1.10.0