From: Frantisek Sumsal Date: Fri, 5 Feb 2021 15:57:30 +0000 (+0100) Subject: test: clean the module build dir before compiling it X-Git-Tag: v248-rc1~186^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd2d8fea141761785195c53658a499006c19210b;p=thirdparty%2Fsystemd.git test: clean the module build dir before compiling it otherwise the module won't compile & load after autorelabel reboot, since the target is already built. --- diff --git a/test/testsuite-06.units/load-systemd-test-module.service b/test/testsuite-06.units/load-systemd-test-module.service index 323a76c68d4..335f38c5b44 100644 --- a/test/testsuite-06.units/load-systemd-test-module.service +++ b/test/testsuite-06.units/load-systemd-test-module.service @@ -8,7 +8,7 @@ Before=sysinit.target shutdown.target autorelabel.service ConditionSecurity=selinux [Service] -ExecStart=sh -x -c 'echo 0 >/sys/fs/selinux/enforce && cd /systemd-test-module && make -f /usr/share/selinux/devel/Makefile load' +ExecStart=sh -x -c 'echo 0 >/sys/fs/selinux/enforce && cd /systemd-test-module && make -f /usr/share/selinux/devel/Makefile clean load' Type=oneshot TimeoutSec=0 RemainAfterExit=yes