Skip to content

Commit

Permalink
Don't create logs directory when the result is skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
pholica committed Feb 19, 2024
1 parent 4e988d8 commit 700905c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/report/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,6 @@ def parse_request_xunit(request_url_list=None, tasks_source=None, skip_pass=Fals
update_reval(ERROR_HERE)
continue

if ARGS.download_logs:
print(" > Downloading the log files.")
# Create the log directory path for the request
log_dir_path = os.path.join(logs_base_directory, log_dir)
os.makedirs(log_dir_path, exist_ok=True)

xunit = request.json()["result"]["xunit"]
xml = lxml.etree.fromstring(xunit.encode())

Expand All @@ -204,6 +198,12 @@ def parse_request_xunit(request_url_list=None, tasks_source=None, skip_pass=Fals
# TODO add debug log
continue

if ARGS.download_logs:
print(" > Downloading the log files.")
# Create the log directory path for the request
log_dir_path = os.path.join(logs_base_directory, log_dir)
os.makedirs(log_dir_path, exist_ok=True)

if request_uuid not in parsed_dict:
parsed_dict[request_uuid] = {
"target_name": request_target,
Expand Down

0 comments on commit 700905c

Please sign in to comment.