mirror of
https://github.com/izzy2lost/docker-android.git
synced 2026-06-19 01:16:28 -07:00
Enabled relaxed security
This commit is contained in:
@@ -108,6 +108,11 @@ def appium_run(avd_name: str):
|
||||
DEFAULT_LOG_PATH = '/var/log/supervisor/appium.log'
|
||||
cmd = 'appium --log {log}'.format(log=os.getenv('APPIUM_LOG', DEFAULT_LOG_PATH))
|
||||
|
||||
relaxed_security = convert_str_to_bool(str(os.getenv('RELAXED_SECURITY', False)))
|
||||
logger.info('Relaxed security? {rs}'.format(rs=relaxed_security))
|
||||
if relaxed_security:
|
||||
cmd += ' --relaxed-security'
|
||||
|
||||
default_web_browser = os.getenv('BROWSER')
|
||||
if default_web_browser == 'chrome':
|
||||
cmd += ' --chromedriver-executable {driver}'.format(driver=CHROME_DRIVER)
|
||||
|
||||
Reference in New Issue
Block a user