mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Add logs to smoke tests (#13533)
* add logs * fix log option * update log folder
This commit is contained in:
@@ -123,7 +123,7 @@ steps:
|
|||||||
set -e
|
set -e
|
||||||
APP_ROOT=$(agent.builddirectory)/azuredatastudio-darwin
|
APP_ROOT=$(agent.builddirectory)/azuredatastudio-darwin
|
||||||
APP_NAME="`ls $APP_ROOT | head -n 1`"
|
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)
|
displayName: Run smoke tests (Electron)
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
condition: and(succeeded(), eq(variables['RUN_TESTS'], 'true'))
|
condition: and(succeeded(), eq(variables['RUN_TESTS'], 'true'))
|
||||||
|
|||||||
@@ -75,6 +75,11 @@ if (screenshotsPath) {
|
|||||||
mkdirp.sync(screenshotsPath);
|
mkdirp.sync(screenshotsPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const logPath = opts.log ? path.resolve(opts.log) : null;
|
||||||
|
if (logPath) {
|
||||||
|
mkdirp.sync(path.dirname(logPath));
|
||||||
|
}
|
||||||
|
|
||||||
function fail(errorMessage): void {
|
function fail(errorMessage): void {
|
||||||
console.error(errorMessage);
|
console.error(errorMessage);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user