Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7053 from DIRACGridBot/cherry-pick-2-55d…
Browse files Browse the repository at this point in the history
…ef243e-integration

[sweep:integration] Workflow tests need pilot.cfg to work
  • Loading branch information
fstagni authored Jun 16, 2023
2 parents 3734de2 + 5bcd946 commit 192c704
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/DIRAC/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ def initialize(
localCfg = LocalConfiguration()

for config_file in extra_config_files or []:
if not os.path.exists(config_file):
continue
cfg = CFG()
cfg.loadFromFile(config_file)
gConfigurationData.mergeWithLocal(cfg)
Expand Down
2 changes: 1 addition & 1 deletion tests/Workflow/Integration/Test_UserJobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import DIRAC

DIRAC.initialize() # Initialize configuration
DIRAC.initialize(extra_config_files=["pilot.cfg"]) # Initialize configuration

from DIRAC import gLogger, rootPath
from DIRAC.tests.Utilities.IntegrationTest import IntegrationTest
Expand Down
2 changes: 1 addition & 1 deletion tests/Workflow/Regression/Test_RegressionUserJobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import DIRAC

DIRAC.initialize() # Initialize configuration
DIRAC.initialize(extra_config_files=["pilot.cfg"]) # Initialize configuration

from DIRAC import gLogger, rootPath

Expand Down

0 comments on commit 192c704

Please sign in to comment.