File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,10 @@ tasks:
102
102
shell_commands :
103
103
- " ./test_cross_build.sh"
104
104
lint_linux :
105
- name : " bazel //tools:lint_check "
105
+ name : " ./test_lint.sh "
106
106
platform : ubuntu2004
107
- run_targets :
108
- - " //tools:lint_check "
107
+ shell_commands :
108
+ - " ./test_lint.sh "
109
109
test_rules_scala_jdk21 :
110
110
name : " ./test_rules_scala with jdk21"
111
111
platform : ubuntu2004
Original file line number Diff line number Diff line change @@ -6,11 +6,13 @@ dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
6
6
rootdir=" $( cd " ${dir} /../.." && pwd) "
7
7
. " ${dir} " /test_runner.sh
8
8
runner=$( get_test_runner " ${1:- local} " )
9
+ test_tmpdir=" ${rootdir} /tmp/lint"
10
+ mkdir -p " $test_tmpdir "
9
11
10
12
check_module_bazel () {
11
13
local repo_path=" ${1% MODULE.bazel} "
12
- local mod_orig=" ${rootdir} /tmp /MODULE.lint"
13
- local mod_diff=" ${rootdir} /tmp /MODULE.diff"
14
+ local mod_orig=" ${test_tmpdir} /MODULE.lint"
15
+ local mod_diff=" ${test_tmpdir} /MODULE.diff"
14
16
15
17
echo -e " ${GREEN} INFO:${NC} linting $1 "
16
18
repo_path=" ${repo_path:- .} "
@@ -33,3 +35,5 @@ check_module_bazel() {
33
35
while IFS= read -r module_file; do
34
36
$runner check_module_bazel " $module_file "
35
37
done < <( git ls-files ' **MODULE.bazel' )
38
+
39
+ rm -rf " ${test_tmpdir} "
You can’t perform that action at this time.
0 commit comments