From b2dc358edd1dd25a9a01544a3c67d9c7a8173fc4 Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Thu, 10 Dec 2015 15:50:18 +0200 Subject: [PATCH] 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. --- build/run-testsapp.grunt.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/build/run-testsapp.grunt.js b/build/run-testsapp.grunt.js index 3ecb5ef01..2fc1eed5b 100644 --- a/build/run-testsapp.grunt.js +++ b/build/run-testsapp.grunt.js @@ -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", ]);