Compare commits

..
6 Commits
Author SHA1 Message Date
budtmo 0e35dab27f Updated base image 2021-07-20 17:21:42 +02:00
Budi UtomoandGitHub 14a98aea88 Merge pull request #294 from ireneu/master
Check correctly if device exists
2021-07-20 17:17:57 +02:00
IreandGitHub 337aaf5103 Use regex to verify config 2021-07-09 14:20:52 +02:00
IreandGitHub f5e86d5806 Check correctly if device exists
config.ini has spaces around the equals sign
2021-07-09 10:56:29 +02:00
budtmo caf2cb2cd8 Fixed pip issue on Azure DevOps 2021-06-21 12:15:51 +02:00
budtmo 03f2ea256a Fixed wrong name 2021-06-21 12:10:18 +02:00
6 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM appium/appium:v1.21.0-p0
FROM appium/appium:v1.21.0-p1
LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
+1 -1
View File
@@ -1,4 +1,4 @@
FROM appium/appium:v1.21.0-p0
FROM appium/appium:v1.21.0-p1
LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
+1 -1
View File
@@ -1,4 +1,4 @@
FROM appium/appium:v1.21.0-p0
FROM appium/appium:v1.21.0-p1
LABEL maintainer "Budi Utomo <budtmo.os@gmail.com>"
+5
View File
@@ -31,6 +31,11 @@ jobs:
11.0:
android.version: '11.0'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.5'
displayName: 'Use Python 3.5'
- script: |
latest_tag=$(git describe --tags --abbrev=0)
echo "##vso[task.setvariable variable=release_version]$latest_tag"
+6 -1
View File
@@ -13,8 +13,13 @@ jobs:
genymotion:
script.name: './release_real.sh'
real_device:
script.name: './release_genymotion.sh'
script.name: './release_geny.sh'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.5'
displayName: 'Use Python 3.5'
- script: |
latest_tag=$(git describe --tags --abbrev=0)
echo "##vso[task.setvariable variable=release_version]$latest_tag"
+2 -1
View File
@@ -3,6 +3,7 @@
import json
import logging
import os
import re
import subprocess
import uuid
@@ -56,7 +57,7 @@ def is_initialized(device_name) -> bool:
if os.path.exists(config_path):
logger.info('Found existing config file at {}.'.format(config_path))
with open(config_path, 'r') as f:
if any('hw.device.name={}'.format(device_name) in line for line in f):
if any(re.match(r'hw\.device\.name ?= ?{}'.format(device_name), line) for line in f):
logger.info('Existing config file references {}. Assuming device was previously initialized.'.format(device_name))
return True
else: