1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

test/TEST-36: move the config files to /run

This way we always start with a clean slate when running the test
repeatedly.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-03-21 11:17:30 +01:00
parent 097d8c6eb7
commit 534a42705b

View File

@ -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