File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 22from ansys .dpf import core
33import ansys .grpc .dpf
44import os
5- import time
65import pathlib
76
87
@@ -29,17 +28,15 @@ def test_loadmeshoperators(allkindofcomplexity):
2928
3029
3130def 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
You can’t perform that action at this time.
0 commit comments