Fix the test run on iOS

The test failed due to a huge output by the `tns platform add ios`
command. Change the grunt `exec` task to `shell` and specify max
length.
This commit is contained in:
Erjan Gavalji
2015-12-10 15:50:18 +02:00
parent 2c8bc8aed1
commit b2dc358edd

View File

@@ -171,10 +171,6 @@ module.exports = {
cmd: localCfg.tnsPath + " create " + localCfg.testsAppName,
cwd: localCfg.workingDir
},
addPlatform: {
cmd: "tns platform add " + localCfg.platform.toLowerCase() + " " + localCfg.frameworkArgument,
cwd: localCfg.applicationDir
},
restartAdb: {
cmd: "adb kill-server && adb start-server"
},
@@ -241,6 +237,15 @@ module.exports = {
}
}
},
addPlatform: {
command: "tns platform add " + localCfg.platform.toLowerCase() + " " + localCfg.frameworkArgument,
options: {
execOptions: {
maxBuffer: Infinity,
cwd: localCfg.applicationDir
}
}
},
}
});
@@ -294,7 +299,7 @@ module.exports = {
"copy:modulesToDir",
"clean:tempExtractedModules",
"exec:addPlatform",
"shell:addPlatform",
getPlatformSpecificTask("copy:add{platform}Permissions"),
"shell:buildApp",
]);