From ba19f5478917cd8b92c81f22e425a7407f98e995 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 2 Feb 2023 18:46:31 +0100 Subject: fix Docker tests --- test/docker/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/docker/Dockerfile (limited to 'test/docker') diff --git a/test/docker/Dockerfile b/test/docker/Dockerfile new file mode 100644 index 0000000..b67e6f0 --- /dev/null +++ b/test/docker/Dockerfile @@ -0,0 +1,9 @@ +ARG DISTRO=xenial + +FROM ubuntu:$DISTRO + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive \ + apt-get install -y --no-install-recommends git + +RUN git config --global --add safe.directory /src -- cgit v1.2.3 From 8f6582160a6dce81d6c6bc080d05aaa0b85d9537 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 4 Feb 2023 12:08:22 +0100 Subject: add an "integration" test I noticed that doing links-update for my linux-home repository didn't work on an old bash version. Building a test case to reproduce... You should be able to check out this commit later and run make test/docker/xenial and it's supposed to fail with something like /src/src/db.sh: line 194: wait: pid 1771 is not a child of this shell --- test/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/docker') diff --git a/test/docker/Dockerfile b/test/docker/Dockerfile index b67e6f0..5d4d016 100644 --- a/test/docker/Dockerfile +++ b/test/docker/Dockerfile @@ -4,6 +4,6 @@ FROM ubuntu:$DISTRO RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive \ - apt-get install -y --no-install-recommends git + apt-get install -y --no-install-recommends ca-certificates git RUN git config --global --add safe.directory /src -- cgit v1.2.3