File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5252running_docker = ansys .dpf .core .server_types .RUNNING_DOCKER .use_docker
5353local_test_repo = False
5454
55+ # Detect if gatebin binaries are available
56+ IS_USING_GATEBIN = _try_use_gatebin ()
57+
5558
5659def _get_test_files_directory ():
5760 if local_test_repo is False :
@@ -72,6 +75,10 @@ def _get_test_files_directory():
7275 )
7376
7477
78+ # Start a first global server to test for version
79+ global_server = core .start_local_server (config = core .AvailableServerConfigs .LegacyGrpcServer )
80+
81+
7582@pytest .hookimpl ()
7683def pytest_sessionfinish (session , exitstatus ):
7784 if os .name == "posix" :
@@ -375,9 +382,6 @@ def return_ds(server=None):
375382 get_server_version (core ._global_server ()), "2.1"
376383)
377384
378- # Detect if gatebin binaries are available
379- IS_USING_GATEBIN = _try_use_gatebin ()
380-
381385
382386def raises_for_servers_version_under (version ):
383387 """Launch the test normally if the server version is equal or higher than the "version"
You can’t perform that action at this time.
0 commit comments