From 15f6541621a520eaa60ca52310ce147ce1b256dd Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Wed, 20 Jun 2018 23:28:41 +0200 Subject: [PATCH] Fixed if-else logic --- docker-compose.yml | 22 +++++++++++----------- src/record.sh | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c94be4f..70bd555 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,10 +24,10 @@ services: # - /dev/bus/usb:/dev/bus/usb # - ~/.android:/root/.android # environment: - # - CONNECT_TO_GRID=True + # - CONNECT_TO_GRID=true # - APPIUM=true # - SELENIUM_HOST=selenium_hub - # - AUTO_RECORD=True + # - AUTO_RECORD=true # - BROWSER_NAME=chrome # Using Appium Docker Android @@ -42,7 +42,7 @@ services: - ~/.android:/root/.android - $PWD/example/sample_apk:/root/tmp environment: - - CONNECT_TO_GRID=True + - CONNECT_TO_GRID=true - SELENIUM_HOST=selenium_hub # Enable it for msite testing #- BROWSER_NAME=chrome @@ -64,10 +64,10 @@ services: - ./video-nexus_7.1.1:/tmp/video environment: - DEVICE=Nexus 5 - - CONNECT_TO_GRID=True + - CONNECT_TO_GRID=true - APPIUM=true - SELENIUM_HOST=selenium_hub - - AUTO_RECORD=True + - AUTO_RECORD=true # Docker-Android for mobile website testing with chrome browser # Chrome browser exists only for version 7.0 and 7.1.1 @@ -85,11 +85,11 @@ services: - ./video-samsung_7.1.1:/tmp/video environment: - DEVICE=Samsung Galaxy S6 - - CONNECT_TO_GRID=True + - CONNECT_TO_GRID=true - APPIUM=true - SELENIUM_HOST=selenium_hub - - MOBILE_WEB_TEST=True - - AUTO_RECORD=True + - MOBILE_WEB_TEST=true + - AUTO_RECORD=true # Docker-Android for mobile website testing with default browser # Default browser exists only for version 5.0.1, 5.1.1 and 6.0 @@ -107,8 +107,8 @@ services: - ./video-samsung_5.1.1:/tmp/video environment: - DEVICE=Samsung Galaxy S6 - - CONNECT_TO_GRID=True + - CONNECT_TO_GRID=true - APPIUM=true - SELENIUM_HOST=selenium_hub - - MOBILE_WEB_TEST=True - - AUTO_RECORD=True + - MOBILE_WEB_TEST=true + - AUTO_RECORD=true diff --git a/src/record.sh b/src/record.sh index e4c39bb..d63a087 100644 --- a/src/record.sh +++ b/src/record.sh @@ -16,7 +16,7 @@ function auto_record() { echo "Auto record: $AUTO_RECORD" sleep 6 - while [ $AUTO_RECORD == "True" ]; do + while [ $AUTO_RECORD == true ]; do # Check if there is test running no_test=true while $no_test; do