mirror of
https://github.com/systemd/systemd.git
synced 2025-01-23 02:04:32 +03:00
test: clean up our mess after the pstore test
This commit is contained in:
parent
014e811e86
commit
e8ee168344
@ -125,6 +125,17 @@ start_pstore() {
|
||||
journalctl --sync
|
||||
}
|
||||
|
||||
at_exit() {
|
||||
set +e
|
||||
|
||||
mountpoint -q /sys/fs/pstore && umount /sys/fs/pstore
|
||||
rm -fr /var/lib/systemd/pstore/*
|
||||
rm -f /run/systemd/system/systemd-pstore.service.d/99-StartLimitInterval.conf
|
||||
rm -f /run/systemd/pstore.conf.d/99-test.conf
|
||||
}
|
||||
|
||||
trap at_exit EXIT
|
||||
|
||||
# To avoid having to depend on the VM providing the pstore, let's simulate
|
||||
# it using a simple bind mount
|
||||
PSTORE_DIR="$(mktemp -d)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user