Skip to content

Commit 31605d7

Browse files
GODRIVER-3493 Clean up scripts
1 parent 4df467e commit 31605d7

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

etc/compile_check.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

etc/run-compile-check-test.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
set -eu
55
set +x
66

7-
SUBTEST=$1
7+
SUBTEST="${1:-}" # Use the default value if $1 is not set
88

99
echo "Running internal/test/compilecheck"
1010
pushd 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
1413
else
15-
# If $1 is not set, run tests without -run
1614
GOWORK=off go test -timeout 30m -v ./... >>../../../test.suite
1715
fi
1816
popd

0 commit comments

Comments
 (0)