mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-18 17:01:07 +00:00
update test/pkg/containerd to work with containerd v2.x tests
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
parent
ffe27fd0aa
commit
d8706f62d9
@ -33,6 +33,8 @@ FROM scratch
|
||||
COPY --from=mirror /out/ /
|
||||
COPY --from=containerd-dev /go/src/github.com/containerd/containerd /go/src/github.com/containerd/containerd/
|
||||
|
||||
RUN mv /sbin/dmsetup /sbin/dmsetup.orig
|
||||
COPY dmsetup.sh /sbin/dmsetup
|
||||
ENV GOPATH=/go
|
||||
WORKDIR $GOPATH/src/github.com/containerd/containerd
|
||||
ADD run.sh ./run.sh
|
||||
|
@ -10,7 +10,6 @@ config:
|
||||
- /etc/resolv.conf:/etc/resolv.conf
|
||||
- /usr/bin/runc:/usr/bin/runc
|
||||
- /usr/bin/containerd:/usr/bin/containerd
|
||||
- /usr/bin/containerd-shim:/usr/bin/containerd-shim
|
||||
devices:
|
||||
# all block and character devices
|
||||
- path: all
|
||||
|
2
test/pkg/containerd/dmsetup.sh
Executable file
2
test/pkg/containerd/dmsetup.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
/sbin/dmsetup "$@" 2> >(sed 's/device or //g' >&2)
|
@ -16,6 +16,6 @@ export TMPDIR=/var/lib/tmp
|
||||
# unset -race (does not work on alpine; see golang/go#14481)
|
||||
export TESTFLAGS=
|
||||
# disable devmapper tests
|
||||
export SKIPTESTS="github.com/containerd/containerd/snapshots/devmapper github.com/containerd/containerd/snapshots/devmapper/dmsetup github.com/containerd/containerd/snapshots/devmapper/losetup"
|
||||
export SKIPTESTS="github.com/containerd/containerd/v2/plugins/snapshots/devmapper github.com/containerd/containerd/v2/plugins/snapshots/devmapper/dmsetup"
|
||||
make root-test || failed
|
||||
printf "containerd test suite PASSED\n"
|
||||
|
Loading…
Reference in New Issue
Block a user