Skip to content

Commit d84a072

Browse files
committed
[PLUTO-1411] rem it-tests in go
1 parent 88a005a commit d84a072

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

run-tool-tests.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ fi
88

99
TOOL_NAME=$1
1010
TOOL_DIR="plugins/tools/$TOOL_NAME/test/src"
11+
TEST_DIR="plugins/tools/$TOOL_NAME/test"
1112
CLI_PATH="$(pwd)/cli-v2"
1213

1314
# Check if tool directory exists
@@ -36,7 +37,7 @@ cd "$TOOL_DIR"
3637
sed -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
4041
jq --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

0 commit comments

Comments
 (0)