Skip to content

Commit bda3055

Browse files
committed
*: update busybox test rootfs
Switch to the actual source of the official Docker library of images, so that we have a proper source for the test filesystem. In addition, update to the latest released version (1.25.0 [2016-06-23]) so that we can use more up-to-date applets in our tests (such as stat(3)). This patch is part of the console rewrite patchset. Signed-off-by: Aleksa Sarai <[email protected]>
1 parent 1543444 commit bda3055

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ RUN mkdir -p /go/src/github.com/mvdan \
4848
# setup a playground for us to spawn containers in
4949
ENV ROOTFS /busybox
5050
RUN mkdir -p ${ROOTFS} \
51-
&& curl -o- -sSL 'https://github.com/jpetazzo/docker-busybox/raw/buildroot-2014.11/rootfs.tar' | tar -C ${ROOTFS} -xf -
51+
&& curl -o- -sSL 'https://github.com/docker-library/busybox/raw/a0558a9006ce0dd6f6ec5d56cfd3f32ebeeb815f/glibc/busybox.tar.xz' | tar xfJC - ${ROOTFS}
52+
5253

5354
COPY script/tmpmount /
5455
WORKDIR /go/src/github.com/opencontainers/runc

libcontainer/integration/exec_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func testExecPS(t *testing.T, userns bool) {
4343
config.Namespaces = append(config.Namespaces, configs.Namespace{Type: configs.NEWUSER})
4444
}
4545

46-
buffers, exitCode, err := runContainer(config, "", "ps")
46+
buffers, exitCode, err := runContainer(config, "", "ps", "-o", "pid,user,comm")
4747
if err != nil {
4848
t.Fatalf("%s: %s", buffers, err)
4949
}

tests/integration/helpers.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function setup_busybox() {
149149
BUSYBOX_IMAGE="/testdata/busybox.tar"
150150
fi
151151
if [ ! -e $BUSYBOX_IMAGE ]; then
152-
curl -o $BUSYBOX_IMAGE -sSL 'https://github.com/jpetazzo/docker-busybox/raw/buildroot-2014.11/rootfs.tar'
152+
curl -o $BUSYBOX_IMAGE -sSL 'https://github.com/docker-library/busybox/raw/a0558a9006ce0dd6f6ec5d56cfd3f32ebeeb815f/glibc/busybox.tar.xz'
153153
fi
154154
tar -C "$BUSYBOX_BUNDLE"/rootfs -xf "$BUSYBOX_IMAGE"
155155
cd "$BUSYBOX_BUNDLE"

0 commit comments

Comments
 (0)