diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-03-21 11:17:30 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-03-28 11:46:48 +0100 |
commit | 534a42705b660f9c66a8dadfd127c381619f974b (patch) | |
tree | 2e37c0304bed712b8c769e93af3462fa157aeab5 /test/units/testsuite-36.sh | |
parent | 097d8c6eb7909d9ecd49562855bb8c9a9e59cefb (diff) | |
download | systemd-534a42705b660f9c66a8dadfd127c381619f974b.tar.gz |
test/TEST-36: move the config files to /run
This way we always start with a clean slate when running the test
repeatedly.
Diffstat (limited to 'test/units/testsuite-36.sh')
-rwxr-xr-x | test/units/testsuite-36.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/units/testsuite-36.sh b/test/units/testsuite-36.sh index bd04bb2efe..d04751b3f0 100755 --- a/test/units/testsuite-36.sh +++ b/test/units/testsuite-36.sh @@ -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 |