]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: clean the module build dir before compiling it
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 5 Feb 2021 15:57:30 +0000 (16:57 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 5 Feb 2021 15:57:30 +0000 (16:57 +0100)
otherwise the module won't compile & load after autorelabel reboot,
since the target is already built.

test/testsuite-06.units/load-systemd-test-module.service

index 323a76c68d42dae09790df0ceb3e4f6c4c1a5110..335f38c5b446bc6c427550b91e35d1fdbebf7311 100644 (file)
@@ -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