From: Tom Hromatka Date: Tue, 6 Jul 2021 15:16:09 +0000 (-0600) Subject: github: Delete the tests folder before bootstrap X-Git-Tag: v3.0~267^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e5ab9314aeeb179556da941806a975270533c69;p=thirdparty%2Flibcgroup.git 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 --- 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"