From 5e5ab9314aeeb179556da941806a975270533c69 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Tue, 6 Jul 2021 09:16:09 -0600 Subject: [PATCH] github: Delete the tests folder before bootstrap On self-hosted github machines, the working directory for libcgroup is reused from one run to the next. This is fine for the root of the directory as the proper git clean/reset commands are issues. But this is problematic for the git submodules like the tests/ folder because clean/reset is nott run there. Remove the tests/ directory entirely and rely on ./bootstrap.sh to recreate and populate it. Signed-off-by: Tom Hromatka --- .github/actions/setup-libcgroup/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/setup-libcgroup/action.yml b/.github/actions/setup-libcgroup/action.yml index 3a62ecab..18615853 100644 --- a/.github/actions/setup-libcgroup/action.yml +++ b/.github/actions/setup-libcgroup/action.yml @@ -28,6 +28,8 @@ runs: shell: bash - run: sudo apt-get install libpam-dev lcov shell: bash + - run: rm -fr tests/ + shell: bash - run: ./bootstrap.sh shell: bash - run: CFLAGS="$CFLAGS -g -O0 -Werror" ./configure --sysconfdir=/etc --localstatedir=/var --enable-code-coverage --enable-opaque-hierarchy="name=systemd" -- 2.47.2