From 0b16c6baa6b24c984a1b4bcd7026172f1627fe92 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 1 Nov 2018 17:26:36 +0900 Subject: [PATCH] test: mask several unnecessary services This may make CIs run faster. (cherry picked from commit 056ae88152a722bdbea54ff33db815d585c8b9c6) (cherry picked from commit c748b95f5a00b6d9c46026c3d251c40437e6b64a) Related: #1781712 --- test/TEST-02-CRYPTSETUP/test.sh | 8 ++++++++ test/TEST-03-JOBS/test.sh | 8 ++++++++ test/TEST-04-JOURNAL/test.sh | 8 ++++++++ test/TEST-05-RLIMITS/test.sh | 8 ++++++++ test/TEST-07-ISSUE-1981/test.sh | 8 ++++++++ test/TEST-11-ISSUE-3166/test.sh | 8 ++++++++ test/TEST-12-ISSUE-3171/test.sh | 8 ++++++++ test/TEST-13-NSPAWN-SMOKE/test.sh | 8 ++++++++ test/TEST-18-FAILUREACTION/test.sh | 7 +++++++ test/TEST-19-DELEGATE/test.sh | 8 ++++++++ test/TEST-20-MAINPIDGAMES/test.sh | 8 ++++++++ test/TEST-23-TYPE-EXEC/test.sh | 8 ++++++++ 12 files changed, 95 insertions(+) diff --git a/test/TEST-02-CRYPTSETUP/test.sh b/test/TEST-02-CRYPTSETUP/test.sh index c38e56f72e..97eb2f409e 100755 --- a/test/TEST-02-CRYPTSETUP/test.sh +++ b/test/TEST-02-CRYPTSETUP/test.sh @@ -45,6 +45,14 @@ test_setup() { setup_basic_environment + # mask some services that we do not want to run in these tests + ln -fs /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service + ln -fs /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service + ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.service + ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.socket + ln -fs /dev/null $initdir/etc/systemd/system/systemd-resolved.service + ln -fs /dev/null $initdir/etc/systemd/system/systemd-machined.service + # setup the testsuite service cat >$initdir/etc/systemd/system/testsuite.service <$initdir/etc/systemd/system/testsuite.service <$initdir/etc/systemd/system/testsuite.service <$initdir/etc/systemd/system.conf <$initdir/etc/systemd/system/testsuite.service <$initdir/etc/systemd/system/testsuite.service <$initdir/etc/systemd/system/testsuite.service <$initdir/etc/systemd/system/testsuite.service <$initdir/etc/systemd/system/testsuite.service <$initdir/etc/systemd/system/testsuite.service <