From ee233317f1c5541a302c4f062b9957ae7ea335c2 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 21 Jun 2022 12:07:13 +0200 Subject: Fix local tests --- podman/arch-testenv | 2 +- podman/testdata/.gitignore | 1 + podman/testdata/testscript.sh | 9 ++------- podman/ubuntu-testenv | 3 ++- 4 files changed, 6 insertions(+), 9 deletions(-) create mode 100644 podman/testdata/.gitignore (limited to 'podman') diff --git a/podman/arch-testenv b/podman/arch-testenv index e878362..2ab09a6 100644 --- a/podman/arch-testenv +++ b/podman/arch-testenv @@ -2,7 +2,7 @@ FROM docker.io/archlinux:latest MAINTAINER gerbolyze@jaseg.de RUN pacman --noconfirm -Syu -RUN pacman --noconfirm -Sy git python python-pip base-devel python-numpy python-slugify python-lxml python-click python-pillow librsvg python-scipy python-sphinx python-pytest twine python-beautifulsoup4 gerbv rustup cargo +RUN pacman --noconfirm -Sy git python python-pip base-devel python-numpy python-slugify python-lxml python-click python-pillow librsvg python-scipy python-sphinx python-pytest twine python-beautifulsoup4 gerbv rustup cargo rsync RUN python3 -m pip install pytest-parallel RUN rustup install stable RUN rustup default stable diff --git a/podman/testdata/.gitignore b/podman/testdata/.gitignore new file mode 100644 index 0000000..5664e30 --- /dev/null +++ b/podman/testdata/.gitignore @@ -0,0 +1 @@ +git diff --git a/podman/testdata/testscript.sh b/podman/testdata/testscript.sh index 4e191b9..d36560d 100755 --- a/podman/testdata/testscript.sh +++ b/podman/testdata/testscript.sh @@ -1,12 +1,7 @@ #!/bin/sh set -e -git clone /data/git git +rsync -av /data/git git cd git -if [ $# -ge 1 -a "$1" = "--parallel" ]; then - python3 -m pytest --workers auto -else - python3 -m pytest -x -fi - +python3 -m pytest $@ diff --git a/podman/ubuntu-testenv b/podman/ubuntu-testenv index df8834a..1e02963 100644 --- a/podman/ubuntu-testenv +++ b/podman/ubuntu-testenv @@ -2,6 +2,7 @@ FROM docker.io/ubuntu:latest MAINTAINER gerbolyze@jaseg.de RUN env DEBIAN_FRONTEND=noninteractive apt update -y -RUN env DEBIAN_FRONTEND=noninteractive apt install -y python3 git python3-wheel curl python3-pip python3-venv cargo +RUN env DEBIAN_FRONTEND=noninteractive apt install -y python3 git python3-wheel curl python3-pip python3-venv cargo gerbv RUN cargo install usvg resvg RUN python3 -m pip install numpy slugify lxml click pillow scipy sphinx pytest beautifulsoup4 pytest-parallel +RUN env DEBIAN_FRONTEND=noninteractive apt install -y rsync -- cgit