]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test/TEST-36: move the config files to /run
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 21 Mar 2020 10:17:30 +0000 (11:17 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Mar 2020 10:46:48 +0000 (11:46 +0100)
This way we always start with a clean slate when running the test
repeatedly.

test/units/testsuite-36.sh

index bd04bb2efe61bc05601be54d827ba05ad6cda112..d04751b3f0780464f455d199093c7408950417f2 100755 (executable)
@@ -22,7 +22,7 @@ journalLog='journal.log'
 
 # Systemd config files
 testUnit='numa-test.service'
-testUnitFile="/etc/systemd/system/$testUnit"
+testUnitFile="/run/systemd/system/$testUnit"
 testUnitNUMAConf="$testUnitFile.d/numa.conf"
 
 # Sleep constants (we should probably figure out something better but nothing comes to mind)
@@ -70,9 +70,9 @@ writePID1NUMAPolicy() {
 }
 
 writeTestUnit() {
+    mkdir -p $testUnitFile.d/
     echo [Service] > $testUnitFile
     echo ExecStart=/bin/sleep 3600 >> $testUnitFile
-    mkdir -p $testUnitFile.d/
 }
 
 writeTestUnitNUMAPolicy() {
@@ -129,7 +129,7 @@ systemctlCheckNUMAProperties() {
 writeTestUnit
 
 # Create systemd config drop-in directory
-confDir="/etc/systemd/system.conf.d/"
+confDir="/run/systemd/system.conf.d/"
 mkdir -p "$confDir"
 
 if ! checkNUMA; then