File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 88
99TOOL_NAME=$1
1010TOOL_DIR=" plugins/tools/$TOOL_NAME /test/src"
11+ TEST_DIR=" plugins/tools/$TOOL_NAME /test"
1112CLI_PATH=" $( pwd) /cli-v2"
1213
1314# Check if tool directory exists
@@ -36,7 +37,7 @@ cd "$TOOL_DIR"
3637sed -i ' s|file:///home/runner/work/codacy-cli-v2/|file:///|g' actual.sarif
3738
3839# Sort all fields in both files, handling null rules array
39- jq --sort-keys ' if .runs[0].tool.driver.rules == null then . else .runs[0].tool.driver.rules |= sort_by(.id) end' expected.sarif > expected.sorted.json
40+ jq --sort-keys ' if .runs[0].tool.driver.rules == null then . else .runs[0].tool.driver.rules |= sort_by(.id) end' " $TEST_DIR / expected.sarif" > expected.sorted.json
4041jq --sort-keys ' if .runs[0].tool.driver.rules == null then . else .runs[0].tool.driver.rules |= sort_by(.id) end' actual.sarif > actual.sorted.json
4142
4243# Run diff and capture its exit code
You can’t perform that action at this time.
0 commit comments