Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: yzewei <[email protected]>
  • Loading branch information
yzewei committed Jan 5, 2024
1 parent 30389ea commit 056e1f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/test-go.bats
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ testEnv() {

@test "loong64-env" {
skip "LOONG64 GO not supported"
export TARGETARCH=loong64
testEnv
}

@test "s390x-env" {
Expand Down Expand Up @@ -220,8 +218,6 @@ testHelloCGO() {

@test "loong64-hellocgo" {
skip "LOONG64 CGO not supported"
export TARGETARCH=loong64
testHelloCGO
}

@test "386-hellocgo" {
Expand Down
6 changes: 2 additions & 4 deletions util/bats-assert/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#FROM --platform=$BUILDPLATFORM alpine AS build
FROM cr.loongnix.cn/library/alpine:3.11 AS build
FROM --platform=$BUILDPLATFORM alpine AS build
RUN apk add --no-cache git
WORKDIR /work
ENV https_proxy=http://10.130.0.20:7890
RUN git clone --bare https://github.com/ztombol/bats-support && \
mkdir -p /out/bats-support && cd /out/bats-support && \
git --git-dir=/work/bats-support.git --work-tree=. checkout 004e707638eedd62e0481e8cdc9223ad471f12ee -- src load.bash LICENSE
Expand All @@ -18,7 +16,7 @@ RUN echo 'source "$(dirname "${BASH_SOURCE[0]}")/bats-support/load.bash"' > /out
FROM scratch AS release
COPY --from=build /out /

FROM cr.loongnix.cn/library/alpine:3.11 AS test-gen
FROM alpine:3.19 AS test-gen
RUN apk add --no-cache bats
WORKDIR /work
COPY --from=release . .
Expand Down
2 changes: 1 addition & 1 deletion util/bats-assert/test.bats.golden
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ not ok 5 run-fail

The following warnings were encountered during tests:
BW01: `run`'s command `./foobar` exited with code 127, indicating 'Command not found'. Use run's return code checks, e.g. `run -127`, to fix this message.
(from function `run' in file /usr/lib/bats-core/test_functions.bash, line 297,
(from function `run' in file /usr/lib/bats-core/test_functions.bash, line 421,
in test file test.bats, line 15)

0 comments on commit 056e1f6

Please sign in to comment.