Skip to content

Commit

Permalink
YQL-16241: [pg-make-test] Remove empty testcases from the resulting t…
Browse files Browse the repository at this point in the history
…estsuite (#863)
  • Loading branch information
marsaly79 authored Jan 8, 2024
1 parent bb77248 commit ecc7733
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ydb/library/yql/tools/pg-make-test/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,20 @@ def build(self, sqlfile):
ressql = stmts
resout = outs

if ressql is not None and resout is not None:
LOGGER.info('Case built: %s', sqlfile.name)
if is_split_logging:
logger.info('Case built: %s', sqlfile.name)

if ressql is not None and resout is not None:
save_strings(ressqlfile, ressql)
save_strings(resoutfile, resout)
else:
LOGGER.warning('Case is empty: %s', sqlfile.name)
if is_split_logging:
logger.warning('Case is empty: %s', sqlfile.name)

ressqlfile.unlink(missing_ok=True)
resoutfile.unlink(missing_ok=True)

return Path(sqlfile).stem, stmts_count, stmts_run, round(stmts_run * 100 / stmts_count, 2)

Expand Down

0 comments on commit ecc7733

Please sign in to comment.