Skip to content

Commit 85373fd

Browse files
committed
Implement basic golang tests on arm and arm64 pipelines
Signed-off-by: Derek Nola <[email protected]>
1 parent 0c0b0f6 commit 85373fd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: scripts/test

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ docker ps
2323
# Only run basic tests on non amd64 archs, we use GitHub Actions for amd64
2424
if [ "$ARCH" != 'amd64' ]; then
2525

26+
export K3S_IMAGE="rancher/k3s:${VERSION_TAG}${SUFFIX}"
27+
go test ./tests/docker/basics/basics_test.go -k3sImage="$K3S_IMAGE"
28+
echo "Did go test basics $?"
29+
2630
. ./tests/docker/test-run-basics
2731
echo "Did test-run-basics $?"
2832

Diff for: tests/docker/test-helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func NewTestConfig(k3sImage string) (*TestConfig, error) {
6969
}
7070

7171
// Generate random secret
72-
config.Secret = fmt.Sprintf("%012d", rand.Intn(1000000000000))
72+
config.Secret = fmt.Sprintf("%012d", rand.Int63n(1000000000000))
7373
return config, nil
7474
}
7575

0 commit comments

Comments
 (0)