Skip to content

Commit

Permalink
Output console when test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcrosta committed Aug 3, 2024
1 parent a3b4cd7 commit e2794de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def run_integration_tests(detector, root):
detector_metadata = parse_json_from_string(stdout)

if not isinstance(detector_metadata, dict):
print("Failed to extract JSON:", detector_metadata)
print("Failed to extract JSON:\n", detector_metadata)
return True

detector_key = detector.replace("-", "_")
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def parse_json_from_string(console_output):
except json.JSONDecodeError:
return "Extracted string is not valid JSON"
else:
return "No JSON found in the console output"
return console_output


def run_subprocess(command: list, cwd: str):
Expand Down

0 comments on commit e2794de

Please sign in to comment.