cherry-pick(#19771): fix(playwright-test): _removeOutputDirs called without await always returns truthy

SHA: 13c5019ac9
This commit is contained in:
Michael Glass 2022-12-31 20:05:10 +01:00 committed by Andrey Lushnikov
parent b8b1c40cf3
commit 9e7001557e

View file

@ -472,7 +472,7 @@ export class Runner {
return { status: 'passed' };
// Remove output directores.
if (!this._removeOutputDirs(options))
if (!await this._removeOutputDirs(options))
return { status: 'failed' };
// Run Global setup.