Fix method name and build 6.0 without google_apis

This commit is contained in:
Andrejs Cunskis 2017-05-24 17:00:29 +03:00
parent 768d793ba0
commit 7170ee20d4
2 changed files with 2 additions and 5 deletions

View file

@ -111,12 +111,9 @@ function build() {
for v in "${versions[@]}"; do for v in "${versions[@]}"; do
# Find image type and default web browser # Find image type and default web browser
if [ "$v" == "5.0.1" ] || [ "$v" == "5.1.1" ]; then if [ "$v" == "5.0.1" ] || [ "$v" == "5.1.1" ] || [ "$v" == "6.0" ]; then
IMG_TYPE=android IMG_TYPE=android
BROWSER=browser BROWSER=browser
elif [ "$v" == "6.0" ]; then
IMG_TYPE=google_apis
BROWSER=browser
else else
IMG_TYPE=google_apis IMG_TYPE=google_apis
BROWSER=chrome BROWSER=chrome

View file

@ -106,7 +106,7 @@ def appium_run(avd_name: str):
logger.info('Connect to selenium grid? {connect}'.format(connect=grid_connect)) logger.info('Connect to selenium grid? {connect}'.format(connect=grid_connect))
if grid_connect: if grid_connect:
try: try:
mobile_web_test = str_to_bool(str(os.getenv('MOBILE_WEB_TEST', False))) mobile_web_test = convert_str_to_bool(str(os.getenv('MOBILE_WEB_TEST', False)))
default_web_browser = os.getenv('BROWSER') default_web_browser = os.getenv('BROWSER')
appium_host = os.getenv('APPIUM_HOST', local_ip) appium_host = os.getenv('APPIUM_HOST', local_ip)
appium_port = int(os.getenv('APPIUM_PORT', 4723)) appium_port = int(os.getenv('APPIUM_PORT', 4723))