Skip to content

Commit 6912298

Browse files
committed
[PLUTO-1411] Add script
1 parent e96bae8 commit 6912298

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

run-tool-tests.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@ sed -i 's|file:///home/runner/work/codacy-cli-v2/codacy-cli-v2/|file:///|g' actu
3737
# Compare with expected output
3838
jq --sort-keys "." expected.sarif > expected.sorted.json
3939
jq --sort-keys "." actual.sarif > actual.sorted.json
40-
diff expected.sorted.json actual.sorted.json
40+
41+
# Run diff and capture its exit code
42+
if ! diff expected.sorted.json actual.sorted.json; then
43+
echo "Error: Test output does not match expected output for $TOOL_NAME"
44+
exit 1
45+
fi
46+
47+
echo "✅ Tests passed successfully for $TOOL_NAME"
4148

4249
# Return to original directory
4350
cd ../../../../..

0 commit comments

Comments
 (0)