File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,6 @@ function compile_check {
3636 GOWORK=off GOOS=linux GOARCH=ppc64le ${GC} build -buildvcs=false ./...
3737 GOWORK=off GOOS=linux GOARCH=s390x ${GC} build -buildvcs=false ./...
3838
39- # Remove the binaries.
40- rm compilecheck
41- rm compilecheck.so
42-
4339 # Change the directory back to the working directory.
4440 popd
4541}
Original file line number Diff line number Diff line change 44set -eu
55set +x
66
7- SUBTEST=$1
7+ SUBTEST=" ${1 :- } " # Use the default value if $1 is not set
88
99echo " Running internal/test/compilecheck"
1010pushd internal/test/compilecheck
11- if [ -n " ${SUBTEST-} " ]; then
12- # If $1 is set and non-empty, use it with -run
11+ if [ -n " $SUBTEST " ]; then
1312 GOWORK=off go test -run " $SUBTEST " -timeout 30m -v ./... >> ../../../test.suite
1413else
15- # If $1 is not set, run tests without -run
1614 GOWORK=off go test -timeout 30m -v ./... >> ../../../test.suite
1715fi
1816popd
You can’t perform that action at this time.
0 commit comments