File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,14 @@ def set_up_workspace() -> None:
22
22
if not IntegtestWorkspace .get_workspace_path ().exists ():
23
23
subprocess .run (["./env/set_up_env_integtests.sh" ], check = True )
24
24
25
- # The DBGymConfig needs to be created after running ./env/set_up_env_integtests.sh so
26
- # that it is created correctly.
27
- IntegtestWorkspace .INTEGTEST_DBGYM_CFG = DBGymConfig (
28
- IntegtestWorkspace .ENV_INTEGTESTS_DBGYM_CONFIG_FPATH
29
- )
25
+ # Once we get here, we have an invariant that the workspace exists. We need this
26
+ # invariant to be true in order to create the DBGymConfig.
27
+ #
28
+ # However, it also can't be created more than once so we need to check `is None`.
29
+ if IntegtestWorkspace .INTEGTEST_DBGYM_CFG is None :
30
+ IntegtestWorkspace .INTEGTEST_DBGYM_CFG = DBGymConfig (
31
+ IntegtestWorkspace .ENV_INTEGTESTS_DBGYM_CONFIG_FPATH
32
+ )
30
33
31
34
@staticmethod
32
35
def get_dbgym_cfg () -> DBGymConfig :
You can’t perform that action at this time.
0 commit comments