File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010const childProcess = require ( 'child_process' ) ;
1111const fs = require ( 'fs' ) ;
12- const path = require ( 'path' ) ;
1312
1413const usage = `
1514=== Usage ===
@@ -27,7 +26,6 @@ node maestro-ios.js <path to app> <app_id> <maestro_flow> <jsengine> <flavor> <w
2726` ;
2827
2928const MAX_ATTEMPTS = 5 ;
30- const MAESTRO_LOG_DIRECTORY = '/tmp/MaestroLogs' ;
3129
3230function findAvailableSimulator ( deviceModel , deviceOS ) {
3331 const output = childProcess . execSync (
@@ -187,14 +185,7 @@ async function executeFlowWithRetries(
187185 const recProcess = startVideoRecording ( udid , currentAttempt ) ;
188186 try {
189187 const timeout = 1000 * 60 * 10 ; // 10 minutes
190- // Keep each attempt's commands, screenshots, and logs; retries would
191- // otherwise overwrite them.
192- const debugOutput = path . join (
193- MAESTRO_LOG_DIRECTORY ,
194- path . basename ( flow , path . extname ( flow ) ) ,
195- `attempt-${ currentAttempt } ` ,
196- ) ;
197- const command = `$HOME/.maestro/bin/maestro --udid="${ udid } " test "${ flow } " --format junit -e APP_ID="${ appId } " --debug-output "${ debugOutput } "` ;
188+ const command = `$HOME/.maestro/bin/maestro --udid="${ udid } " test "${ flow } " --format junit -e APP_ID="${ appId } "` ;
198189 console . info ( `Executing flow: ${ flow } (attempt ${ currentAttempt } )` ) ;
199190 console . log ( command ) ;
200191 childProcess . execSync ( `MAESTRO_DRIVER_STARTUP_TIMEOUT=1500000 ${ command } ` , {
You can’t perform that action at this time.
0 commit comments