Browse Source

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

Dan Korostelev 10 years ago
parent
commit
626ecd5271
1 changed files with 5 additions and 4 deletions
  1. 5 4
      tests/RunCi.hx

+ 5 - 4
tests/RunCi.hx

@@ -217,13 +217,14 @@ class RunCi {
 		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);
 		switch (systemName) {
 			case "Linux", "Mac":
-				runCommand("mono", [exe]);
+				runCommand("mono", [exe].concat(args));
 			case "Windows":
-				runCommand(exe, []);
+				runCommand(exe, args);
 		}
 	}
 
@@ -566,7 +567,7 @@ class RunCi {
 					changeDirectory(sysDir);
 					runCommand("haxe", ["compile-cs.hxml"]);
 					changeDirectory("bin/cs");
-					runCommand("bin/Main-Debug.exe", args);
+					runExe("bin/Main-Debug.exe", args);
 
 				case Flash9:
 					setupFlashPlayerDebugger();