mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
smoke - ignore any failure from capturing screenshot
This commit is contained in:
parent
3084de82e9
commit
a3acef919f
|
@ -48,7 +48,11 @@ export function afterSuite(opts: minimist.ParsedArgs) {
|
|||
|
||||
if (this.currentTest?.state === 'failed' && opts.screenshots) {
|
||||
const name = this.currentTest!.fullTitle().replace(/[^a-z0-9\-]/ig, '_');
|
||||
await app.captureScreenshot(name);
|
||||
try {
|
||||
await app.captureScreenshot(name);
|
||||
} catch (error) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
if (app) {
|
||||
|
|
Loading…
Reference in a new issue