Skip to content

Commit 937feda

Browse files
committed
reruns
1 parent f68b788 commit 937feda

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.ci/azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
set THISDIR=$(System.DefaultWorkingDirectory)
9898
cd tests=$(System.DefaultWorkingDirectory)
9999
set AWP_ROOT212=%THISDIR%\server\v212
100-
pytest -v --junitxml=junit/test-results.xml --cov ansys.dpf.core --cov-report=xml
100+
pytest -v --junitxml=junit/test-results.xml --cov ansys.dpf.core --cov-report=xml --reruns 3
101101
102102
displayName: Test Core API
103103
@@ -203,7 +203,7 @@ jobs:
203203
export AWP_ROOT212=${SYSTEM_DEFAULTWORKINGDIRECTORY}/server/v212
204204
cd tests
205205
export DPF_IP=$(hostname -i)
206-
pytest -v --junitxml=junit/test-results.xml --cov ansys.dpf.core --cov-report=xml
206+
pytest -v --junitxml=junit/test-results.xml --cov ansys.dpf.core --cov-report=xml --reruns 3
207207
export PATH=`pwd`
208208
echo ${PATH}
209209
displayName: Test Core API

tests/test_service.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from ansys.dpf import core
33
import ansys.grpc.dpf
44
import os
5-
import time
65
import pathlib
76

87

@@ -29,17 +28,15 @@ def test_loadmeshoperators(allkindofcomplexity):
2928

3029

3130
def test_loadplugin():
32-
ansys_path = dpf.core.misc.find_ansys()
33-
server = dpf.core.start_local_server(as_global=False, ansys_path = ansys_path, load_operators=False)
34-
time.sleep(0.01)
3531
loaded = False
3632
try:
37-
dpf.core.load_library('libAns.Dpf.Math.so', "math", server=server)
33+
dpf.core.load_library('libAns.Dpf.Math.so', "math")
3834
loaded=True
39-
except:
35+
except Exception as e:
36+
print(e.args)
4037
pass
4138
try:
42-
dpf.core.load_library('Ans.Dpf.Math.dll', "math", server=server)
39+
dpf.core.load_library('Ans.Dpf.Math.dll', "math")
4340
loaded=True
4441
except Exception as e:
4542
print(e.args)
@@ -52,7 +49,9 @@ def test_launch_server_not_install():
5249
path = os.path.join(ansys_path,'aisol','bin','winx64')
5350
else:
5451
path = os.path.join(ansys_path,'aisol','bin','linx64')
55-
52+
53+
print("trying to launch on ", path)
54+
print(os.listdir(path))
5655
server = dpf.core.start_local_server(as_global=False, ansys_path = path)
5756
assert 'server_port' in server.info
5857

0 commit comments

Comments
 (0)