Skip to content

Commit 96f6382

Browse files
author
plamen5kov
committed
logs when testing so travis doesn't timeout on the count of no log for 10 minutes
1 parent 40b48e0 commit 96f6382

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test-app/tools/try_to_find_test_result_file.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ var
22
searchForFile = require('child_process').exec,
33
execFindFile = require('child_process').exec,
44
fs = require('fs'),
5+
pullfile,
56

67
isTimeToExit = false,
78

@@ -23,7 +24,9 @@ function closeProcessAfter(timeout) {
2324
}
2425

2526
function tryToGetFile() {
26-
execFindFile("adb " + runOnDeviceOrEmulator + " pull /sdcard/android_unit_test_results.xml", checkIfFileExists);
27+
pullfile = execFindFile("adb " + runOnDeviceOrEmulator + " pull /sdcard/android_unit_test_results.xml", checkIfFileExists);
28+
pullfile.stdout.pipe(process.stdout, { end: false });
29+
pullfile.stderr.pipe(process.stderr, { end: false });
2730
}
2831

2932
function checkIfFileExists(err, stout, stderr) {

0 commit comments

Comments
 (0)