File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import * as os from 'os';
20
20
import { spawn } from 'child_process' ;
21
21
import { getUbuntuVersion } from '../utils/ubuntuVersion' ;
22
22
import * as registry from '../utils/registry' ;
23
+ import * as utils from '../utils/utils' ;
23
24
import { printDepsWindowsExecutable } from '../utils/binaryPaths' ;
24
25
25
26
const accessAsync = util . promisify ( fs . access . bind ( fs ) ) ;
@@ -28,6 +29,10 @@ const statAsync = util.promisify(fs.stat.bind(fs));
28
29
const readdirAsync = util . promisify ( fs . readdir . bind ( fs ) ) ;
29
30
30
31
export async function validateHostRequirements ( registry : registry . Registry , browserName : registry . BrowserName ) {
32
+ if ( utils . getAsBooleanFromENV ( 'PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS' ) ) {
33
+ process . stdout . write ( 'Skipping host requirements validation logic because `PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS` env variable is set.\n' ) ;
34
+ return ;
35
+ }
31
36
const ubuntuVersion = await getUbuntuVersion ( ) ;
32
37
if ( browserName === 'firefox' && ubuntuVersion === '16.04' )
33
38
throw new Error ( `Cannot launch firefox on Ubuntu 16.04! Minimum required Ubuntu version for Firefox browser is 18.04` ) ;
You can’t perform that action at this time.
0 commit comments