Skip to content

Commit b2dc358

Browse files
committed
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.
1 parent 2c8bc8a commit b2dc358

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

build/run-testsapp.grunt.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,6 @@ module.exports = {
171171
cmd: localCfg.tnsPath + " create " + localCfg.testsAppName,
172172
cwd: localCfg.workingDir
173173
},
174-
addPlatform: {
175-
cmd: "tns platform add " + localCfg.platform.toLowerCase() + " " + localCfg.frameworkArgument,
176-
cwd: localCfg.applicationDir
177-
},
178174
restartAdb: {
179175
cmd: "adb kill-server && adb start-server"
180176
},
@@ -241,6 +237,15 @@ module.exports = {
241237
}
242238
}
243239
},
240+
addPlatform: {
241+
command: "tns platform add " + localCfg.platform.toLowerCase() + " " + localCfg.frameworkArgument,
242+
options: {
243+
execOptions: {
244+
maxBuffer: Infinity,
245+
cwd: localCfg.applicationDir
246+
}
247+
}
248+
},
244249
}
245250
});
246251

@@ -294,7 +299,7 @@ module.exports = {
294299
"copy:modulesToDir",
295300
"clean:tempExtractedModules",
296301

297-
"exec:addPlatform",
302+
"shell:addPlatform",
298303
getPlatformSpecificTask("copy:add{platform}Permissions"),
299304
"shell:buildApp",
300305
]);

0 commit comments

Comments
 (0)