File tree 3 files changed +10
-17
lines changed
3 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -474,4 +474,4 @@ bazel-build:
474
474
bazel build //cmd/... //pkg/... //federation/... //plugin/... //build/... //examples/... //test/... //third_party/...
475
475
476
476
bazel-test :
477
- bazel test --test_output=errors //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/...
477
+ bazel test --test_output=errors //cmd/... //pkg/... //federation/... //plugin/... //build/... //third_party/... //hack/...
Original file line number Diff line number Diff line change 1
1
package (default_visibility = ["//visibility:public" ])
2
2
3
3
exports_files (glob (["*.txt" ]))
4
+
5
+ py_test (
6
+ name = "boilerplate_test" ,
7
+ srcs = [
8
+ "boilerplate_test.py" ,
9
+ "boilerplate.py" ,
10
+ ],
11
+ data = glob (["*.txt" , "test/*" ]),
12
+ )
Original file line number Diff line number Diff line change @@ -25,22 +25,6 @@ boiler="${boilerDir}/boilerplate.py"
25
25
26
26
files_need_boilerplate=($( ${boiler} " $@ " ) )
27
27
28
- # Run boilerplate.py unit tests
29
- unitTestOut=" $( mktemp) "
30
- trap cleanup EXIT
31
- cleanup () {
32
- rm " ${unitTestOut} "
33
- }
34
-
35
- pushd " ${boilerDir} " > /dev/null
36
- if ! python -m unittest boilerplate_test 2> " ${unitTestOut} " ; then
37
- echo " boilerplate_test.py failed"
38
- echo
39
- cat " ${unitTestOut} "
40
- exit 1
41
- fi
42
- popd > /dev/null
43
-
44
28
# Run boilerplate check
45
29
if [[ ${# files_need_boilerplate[@]} -gt 0 ]]; then
46
30
for file in " ${files_need_boilerplate[@]} " ; do
You can’t perform that action at this time.
0 commit comments