diff --git a/build/azure-pipelines/darwin/sql-product-build-darwin.yml b/build/azure-pipelines/darwin/sql-product-build-darwin.yml index fc6bdd7d12..da08b6df3f 100644 --- a/build/azure-pipelines/darwin/sql-product-build-darwin.yml +++ b/build/azure-pipelines/darwin/sql-product-build-darwin.yml @@ -123,7 +123,7 @@ steps: set -e APP_ROOT=$(agent.builddirectory)/azuredatastudio-darwin APP_NAME="`ls $APP_ROOT | head -n 1`" - yarn smoketest --build "$APP_ROOT/$APP_NAME" --screenshots "$(build.artifactstagingdirectory)/smokeshots" + yarn smoketest --build "$APP_ROOT/$APP_NAME" --screenshots "$(build.artifactstagingdirectory)/smokeshots" --log "$(build.artifactstagingdirectory)/logs/darwin/smoke.log" displayName: Run smoke tests (Electron) continueOnError: true condition: and(succeeded(), eq(variables['RUN_TESTS'], 'true')) diff --git a/test/smoke/src/main.ts b/test/smoke/src/main.ts index 476dada1c9..17517ed17e 100644 --- a/test/smoke/src/main.ts +++ b/test/smoke/src/main.ts @@ -75,6 +75,11 @@ if (screenshotsPath) { mkdirp.sync(screenshotsPath); } +const logPath = opts.log ? path.resolve(opts.log) : null; +if (logPath) { + mkdirp.sync(path.dirname(logPath)); +} + function fail(errorMessage): void { console.error(errorMessage); process.exit(1);