Skip to content

Commit efba02d

Browse files
committed
Moved directory creation to after tmp_dir assignment
Signed-off-by: D. Mitch Bailey <d.mitch.bailey@gmail.com>
1 parent 305d3ed commit efba02d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/cf_precheck/config.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ def run_be_check(
185185
log_path = f"{output_directory}/logs"
186186
report_path = f"{output_directory}/outputs/reports"
187187
log_file_path = f"{log_path}/{check}_check.log"
188-
tmp_dir = f"{output_directory}/tmp"
189-
190-
for d in [log_path, tmp_dir, f"{output_directory}/outputs", report_path]:
191-
os.makedirs(d, exist_ok=True)
192188

193189
if check == "LVS":
194190
be_script = "run_be_checks"
@@ -202,6 +198,9 @@ def run_be_check(
202198
logging.error(f"Unknown backend check: {check}")
203199
return False
204200

201+
for d in [log_path, tmp_dir, f"{output_directory}/outputs", report_path]:
202+
os.makedirs(d, exist_ok=True)
203+
205204
be_checks_dir = str(Path(__file__).parent / "be_checks")
206205

207206
be_env: dict = {}

0 commit comments

Comments
 (0)