Explorar o código

fix java test suite for multiple local runs

Aleksandr Kuzmenko %!s(int64=6) %!d(string=hai) anos
pai
achega
3451ef7c09
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      tests/runci/targets/Java.hx

+ 5 - 1
tests/runci/targets/Java.hx

@@ -15,7 +15,9 @@ class Java {
 	}
 
 	static public function run(args:Array<String>) {
+		deleteDirectoryRecursively("bin/java");
 		getJavaDependencies();
+
 		runCommand("haxe", ["compile-java.hxml"].concat(args));
 		runCommand("java", ["-jar", "bin/java/TestMain-Debug.jar"]);
 
@@ -34,7 +36,9 @@ class Java {
 
 		infoMsg("Testing java-lib extras");
 		changeDirectory('$unitDir/bin');
-		runCommand("git", ["clone", "https://github.com/waneck/java-lib-tests.git", "--depth", "1"], true);
+		if (!FileSystem.exists('java-lib-tests')) {
+			runCommand("git", ["clone", "https://github.com/waneck/java-lib-tests.git", "--depth", "1"], true);
+		}
 		for (dir in FileSystem.readDirectory('java-lib-tests'))
 		{
 			var path = 'java-lib-tests/$dir';