|
@@ -26,7 +26,7 @@ class Main {
|
|
|
var path = Path.join([dirPath, file]);
|
|
|
if (FileSystem.isDirectory(path)) {
|
|
|
browse(path);
|
|
|
- } else if (file.endsWith(".hxml")) {
|
|
|
+ } else if (file.endsWith(".hxml") && !file.endsWith("-each.hxml")) {
|
|
|
var old = Sys.getCwd();
|
|
|
Sys.setCwd(dirPath);
|
|
|
Sys.println('Running haxe $path');
|
|
@@ -73,6 +73,8 @@ class Main {
|
|
|
|
|
|
static function runCommand(command:String, args:Array<String>, expectFailure:Bool, expectStderr:String) {
|
|
|
var proc = new sys.io.Process(command, args);
|
|
|
+ var stderr = proc.stderr.readAll().toString();
|
|
|
+ proc.stdout.readAll();
|
|
|
var exit = proc.exitCode();
|
|
|
var success = exit == 0;
|
|
|
var result = switch [success, expectFailure] {
|
|
@@ -84,7 +86,6 @@ class Main {
|
|
|
case [false, true]:
|
|
|
true;
|
|
|
case [false, false]:
|
|
|
- var stderr = proc.stderr.readAll().toString();
|
|
|
Sys.print(stderr);
|
|
|
false;
|
|
|
}
|