]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
github: Delete the tests folder before bootstrap 54/head
authorTom Hromatka <tom.hromatka@oracle.com>
Tue, 6 Jul 2021 15:16:09 +0000 (09:16 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 6 Jul 2021 15:16:09 +0000 (09:16 -0600)
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 <tom.hromatka@oracle.com>
.github/actions/setup-libcgroup/action.yml

index 3a62ecabfb6a2950f288c09385e913b00c7a44a4..18615853a5e31c8e258c0d2def76967c93718b7f 100644 (file)
@@ -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"