Selaa lähdekoodia

[ci] fix running sys tests for c# on osx

Dan Korostelev 10 vuotta sitten
vanhempi
sitoutus
626ecd5271
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5 4
      tests/RunCi.hx

+ 5 - 4
tests/RunCi.hx

@@ -217,13 +217,14 @@ class RunCi {
 		Sys.exit(1);
 		Sys.exit(1);
 	}
 	}
 
 
-	static function runExe(exe:String):Void {
+	static function runExe(exe:String, ?args:Array<String>):Void {
+		if (args == null) args = [];
 		exe = FileSystem.fullPath(exe);
 		exe = FileSystem.fullPath(exe);
 		switch (systemName) {
 		switch (systemName) {
 			case "Linux", "Mac":
 			case "Linux", "Mac":
-				runCommand("mono", [exe]);
+				runCommand("mono", [exe].concat(args));
 			case "Windows":
 			case "Windows":
-				runCommand(exe, []);
+				runCommand(exe, args);
 		}
 		}
 	}
 	}
 
 
@@ -566,7 +567,7 @@ class RunCi {
 					changeDirectory(sysDir);
 					changeDirectory(sysDir);
 					runCommand("haxe", ["compile-cs.hxml"]);
 					runCommand("haxe", ["compile-cs.hxml"]);
 					changeDirectory("bin/cs");
 					changeDirectory("bin/cs");
-					runCommand("bin/Main-Debug.exe", args);
+					runExe("bin/Main-Debug.exe", args);
 
 
 				case Flash9:
 				case Flash9:
 					setupFlashPlayerDebugger();
 					setupFlashPlayerDebugger();