Skip to content

Commit de313e9

Browse files
committed
print logs after run
1 parent 1ac9c0d commit de313e9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

integration_tests/tests/test_dbt_artifacts/test_groups.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,11 @@ def print_dbt_log_tail(n=40):
5656

5757
def run_dbt_and_check(cmd, *args, **kwargs):
5858
result = cmd(*args, **kwargs)
59+
print_dbt_log_tail() # Always print log tail
5960
# If result is a dict or object, check for success
6061
if hasattr(result, "success") and not result.success:
61-
print_dbt_log_tail()
6262
assert False, f"dbt command failed: {result}"
6363
elif isinstance(result, dict) and not result.get("success", True):
64-
print_dbt_log_tail()
6564
assert False, f"dbt command failed: {result}"
6665
# If result is None, rely on downstream assertions
6766
return result

0 commit comments

Comments
 (0)