@@ -490,14 +490,6 @@ def uf_docker(docker_services, tmp_path_factory, worker_id, request):
490490 """
491491 Provides IP of the uf server and management port based on pytest-args(splunk_type)
492492 """
493- LOGGER .info ("Starting docker_service=uf" )
494- os .environ ["CURRENT_DIR" ] = os .getcwd ()
495- if worker_id :
496- # get the temp directory shared by all workers
497- root_tmp_dir = tmp_path_factory .getbasetemp ().parent
498- fn = root_tmp_dir / "pytest_docker"
499- with FileLock (str (fn ) + ".lock" ):
500- docker_services .start ("uf" )
501493 uf_info = {
502494 "uf_host" : docker_services .docker_ip ,
503495 "uf_port" : docker_services .port_for ("uf" , 8089 ),
@@ -540,6 +532,7 @@ def splunk_docker(
540532 """
541533 # configuration of environment variables needed by docker-compose file
542534 os .environ ["SPLUNK_APP_PACKAGE" ] = request .config .getoption ("splunk_app" )
535+ os .environ ["CURRENT_DIR" ] = os .getcwd ()
543536 try :
544537 config = configparser .ConfigParser ()
545538 config .read (
@@ -558,14 +551,14 @@ def splunk_docker(
558551 os .environ ["SPLUNK_VERSION" ] = request .config .getoption ("splunk_version" )
559552 os .environ ["SC4S_VERSION" ] = request .config .getoption ("sc4s_version" )
560553
561- LOGGER .info ("Starting docker_service=splunk " )
554+ LOGGER .info ("Starting docker services " )
562555 if worker_id :
563556 # get the temp directory shared by all workers
564557 root_tmp_dir = tmp_path_factory .getbasetemp ().parent
565558 fn = root_tmp_dir / "pytest_docker"
566559 # if you encounter docker-compose not found modify shell path in your IDE to use /bin/bash
567560 with FileLock (str (fn ) + ".lock" ):
568- docker_services .start ("splunk" )
561+ docker_services .start ()
569562
570563 splunk_info = {
571564 "host" : docker_services .docker_ip ,
@@ -648,13 +641,6 @@ def sc4s_docker(docker_services, tmp_path_factory, worker_id):
648641 """
649642 Provides IP of the sc4s server and related ports based on pytest-args(splunk_type)
650643 """
651- if worker_id :
652- # get the temp directory shared by all workers
653- root_tmp_dir = tmp_path_factory .getbasetemp ().parent
654- fn = root_tmp_dir / "pytest_docker"
655- with FileLock (str (fn ) + ".lock" ):
656- docker_services .start ("sc4s" )
657-
658644 ports = {514 : docker_services .port_for ("sc4s" , 514 )}
659645 for x in range (5000 , 5007 ):
660646 ports .update ({x : docker_services .port_for ("sc4s" , x )})
0 commit comments