Skip to content

Commit 04fa58b

Browse files
committed
[PLUTO-1411] Add script
1 parent 800299c commit 04fa58b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

run-tool-tests.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
3736
sed -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
4443
if ! 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
4851
else

0 commit comments

Comments
 (0)