Skip to content

Commit

Permalink
Remove call to delete_pr_dirs() which is messing up test compilation …
Browse files Browse the repository at this point in the history
…somehow, finally clean up the unparseable wall of text logs into something more readable
  • Loading branch information
mkavulich committed Feb 8, 2024
1 parent ded0e22 commit 1ab2a72
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/auto/rt_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_preqs_with_actions(repos, args, ghinterface_obj, actions, git_cfg):
.get_pulls(state='open', sort='created', base=repo['base'])
for repo in repos]
each_pr = [preq for gh_preq in gh_preqs for preq in gh_preq]
delete_pr_dirs(each_pr, args.machine, args.workdir)
# delete_pr_dirs(each_pr, args.machine, args.workdir)
preq_labels = [{'preq': pr, 'label': label} for pr in each_pr
for label in pr.get_labels()]

Expand Down Expand Up @@ -208,7 +208,8 @@ def run_commands(self, logger, commands_with_cwd):
try:
out, err = output.communicate()
out = [] if not out else out.decode('utf8').split('\n')
logger.info(out)
for o in out:
logger.info(out[o])
except Exception as e:
err = [] if not err else err.decode('utf8').split('\n')
self.job_failed(logger, f'Command {command}', exception=e,
Expand Down Expand Up @@ -250,7 +251,8 @@ def job_failed(self, logger, job_name, exception=None, STDOUT=False,
logger.critical(f'{job_name} FAILED.')

if STDOUT:
logger.critical(f'STDOUT: {[item for item in out if not None]}')
for o in out:
logger.critical(f'STDOUT: {o}')
logger.critical(f'STDERR: {[eitem for eitem in err if not None]}')
# if exception is not None:
# raise
Expand Down

0 comments on commit 1ab2a72

Please sign in to comment.