summaryrefslogtreecommitdiffstats
path: root/test/Java/JAR.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2018-10-02 21:20:00 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2018-10-02 21:20:00 (GMT)
commit7cae39dc41ee3ff6becb53dbc8c426eddff9b8ac (patch)
tree5a95b6c8a035aae298c901829fbc196fd6036d05 /test/Java/JAR.py
parent98dfcef355d8d68360fde70afb52bc4250b1926b (diff)
downloadSCons-7cae39dc41ee3ff6becb53dbc8c426eddff9b8ac.zip
SCons-7cae39dc41ee3ff6becb53dbc8c426eddff9b8ac.tar.gz
SCons-7cae39dc41ee3ff6becb53dbc8c426eddff9b8ac.tar.bz2
Fixes for Java tests on win32
Diffstat (limited to 'test/Java/JAR.py')
-rw-r--r--test/Java/JAR.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Java/JAR.py b/test/Java/JAR.py
index 4703a28..1eae9eb 100644
--- a/test/Java/JAR.py
+++ b/test/Java/JAR.py
@@ -302,16 +302,16 @@ public class JavaFile3
}
""")
-test.run(chdir='testdir2')
# check the output and make sure the java files got converted to classes
-compare_string = "jar cf foo.jar -C com/javasource/JavaFile1 com/javasource/JavaFile1.class -C com/javasource/JavaFile2 com/javasource/JavaFile2.class -C com/javasource/JavaFile3 com/javasource/JavaFile3.class"
+# use regex . for dirsep so this will work on both windows and other platforms.
+expect = ".*jar cf foo.jar -C com.javasource.JavaFile1 com.javasource.JavaFile1.class -C com.javasource.JavaFile2 com.javasource.JavaFile2.class -C com.javasource.JavaFile3 com.javasource.JavaFile3.class.*"
+
+test.run(chdir='testdir2',
+ match=TestSCons.match_re_dotall,
+ stdout = expect)
-if sys.platform == 'win32':
- compare_string = compare_string.replace('/','\\')
-if(compare_string not in test.stdout()):
- test.fail_test()
#test single target jar
test.must_exist(['testdir2','foobar.jar'])