Skip to content

Commit 8299ea7

Browse files
Merge branch 'azure-pipelines' of github.com:HelioGuilherme66/robotframework-seleniumlibrary into azure-pipelines
2 parents 40185a1 + 0db2b03 commit 8299ea7

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

atest/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def sauce_credentials(sauce_username, sauce_key):
225225
if args.nounit:
226226
print('Not running unit tests.')
227227
else:
228-
rc = subprocess.call([interpreter, UNIT_TEST_RUNNER])
228+
rc = subprocess.call([interpreter, UNIT_TEST_RUNNER], shell=(os.name == 'nt'))
229229
if rc != 0:
230230
print('Not running acceptance test, because unit tests failed.')
231231
sys.exit(rc)

azure-pipelines.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
robot.options: '--xunit results.xml --xunitskipnoncritical --dotted'
2626
python.version: '3.7'
2727
maxParallel: 3
28-
28+
29+
steps:
2930
- task: PythonScript@0
3031
inputs:
3132
url: 'http://selenium-release.storage.googleapis.com/3.141/IEDriverServer_Win32_3.141.0.zip'
@@ -40,14 +41,9 @@ jobs:
4041
destinationFolder: $(Build.SourcesDirectory)
4142
#cleanDestinationFolder: true
4243
displayName: 'Extract IeDriverServer'
43-
variables:
4444
Path: $(Build.SourcesDirectory);$(Path)
4545

46-
steps:
47-
- script: echo Path is $(Path)
48-
49-
steps:
50-
- task: UsePythonVersion@1
46+
- task: UsePythonVersion@0
5147
inputs:
5248
versionSpec: '$(python.version)'
5349
architecture: 'x64'
@@ -56,10 +52,10 @@ jobs:
5652
displayName: 'Install dependencies'
5753

5854
- script: |
59-
python atest/run.py $(browser) --interpreter 'python$(python.version)' $(robot.options)
55+
python atest/run.py $(browser) --interpreter python $(robot.options)
6056
displayName: 'acceptance tests'
6157
62-
- task: PublishTestResults@2
58+
- task: PublishTestResults@0
6359
inputs:
6460
testResultsFiles: '**/atest/results/results.xml'
6561
testRunTitle: 'Python $(python.version)'

0 commit comments

Comments
 (0)