From c14e6cb01ca2b8624d4c133f6f109c17510f90a6 Mon Sep 17 00:00:00 2001
From: Christophe Sovant <christophe.sovant@forgerock.com>
Date: Thu, 05 Jun 2008 18:26:08 +0000
Subject: [PATCH] Fix SNMP tests on Windows (EOL character, location of JSTAF.jar) + add testcase for issue 3308

---
 opends/tests/shared/functions/topology.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/opends/tests/shared/functions/topology.xml b/opends/tests/shared/functions/topology.xml
index d9c341a..b61e5b3 100755
--- a/opends/tests/shared/functions/topology.xml
+++ b/opends/tests/shared/functions/topology.xml
@@ -378,7 +378,12 @@
                     'name'     : 'STAF/Config/STAFRoot'
                     }
                   </call>                                                       
-                  <script>jstaf_jarfile='%s/lib/JSTAF.jar' % STAFResult</script> 
+                  <script>
+                    if is_windows_platform(STAXServiceMachine):
+                      jstaf_jarfile='%s\\bin\\JSTAF.jar' % STAFResult
+                    else:
+                      jstaf_jarfile='%s/lib/JSTAF.jar' % STAFResult
+                  </script>
                   
                   <!---   Compile snmp java files on controler host -->
                   <message>

--
Gitblit v1.10.0