Guard if you try to run Safari in Docker (#3405)

This commit is contained in:
Peter Hedenskog 2021-06-03 14:08:54 +02:00 committed by GitHub
parent 0b9d79193b
commit d2292333f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -112,6 +112,14 @@ function validateInput(argv) {
return 'Error: You have a miss match between number of alias for groups and URLs.';
}
if (
argv.browsertime.safari &&
argv.browsertime.safari.useSimulator &&
argv.browsertime.docker
) {
return 'You cannot use Safari simulator in Docker. You need to run on directly on Mac OS.';
}
if (
argv.browsertime.safari &&
argv.browsertime.safari.useSimulator &&