We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e96bae8 commit 6912298Copy full SHA for 6912298
run-tool-tests.sh
@@ -37,7 +37,14 @@ sed -i 's|file:///home/runner/work/codacy-cli-v2/codacy-cli-v2/|file:///|g' actu
37
# Compare with expected output
38
jq --sort-keys "." expected.sarif > expected.sorted.json
39
jq --sort-keys "." actual.sarif > actual.sorted.json
40
-diff expected.sorted.json actual.sorted.json
+
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"
48
49
# Return to original directory
50
cd ../../../../..
0 commit comments