File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ cd "$TOOL_DIR"
3333
3434# Convert absolute paths to relative paths in the output
3535# Handle both path formats: with and without extra codacy-cli-v2
36- sed -i ' s|file:///home/runner/work/codacy-cli-v2/codacy-cli-v2/|file:///|g' actual.sarif
3736sed -i ' s|file:///home/runner/work/codacy-cli-v2/|file:///|g' actual.sarif
3837
3938# Compare with expected output
@@ -43,6 +42,10 @@ jq --sort-keys "." actual.sarif > actual.sorted.json
4342# Run diff and capture its exit code
4443if ! diff expected.sorted.json actual.sorted.json; then
4544 echo " ❌ Test output does not match expected output for $TOOL_NAME "
45+ echo -e " \nExpected SARIF output:"
46+ cat expected.sorted.json
47+ echo -e " \nActual SARIF output:"
48+ cat actual.sorted.json
4649 # Write to a file to track failures
4750 echo " $TOOL_NAME " >> /tmp/failed_tools.txt
4851else
You can’t perform that action at this time.
0 commit comments