diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2024-11-05 19:15:36 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-11-05 21:02:57 +0100 |
commit | 78b032d727e8f9e925c10c6617a1e409307ffc24 (patch) | |
tree | 00851ee6177170f45ecbdafaa25984ef3410892f /test | |
parent | network: handle ENODATA better with DNR (diff) | |
download | systemd-78b032d727e8f9e925c10c6617a1e409307ffc24.tar.xz systemd-78b032d727e8f9e925c10c6617a1e409307ffc24.zip |
test: delete /swapfile after swapoff
[ 23.608342] TEST-55-OOMD.sh[689]: + btrfs filesystem mkswapfile -s 64M /swapfile
[ 23.651930] TEST-55-OOMD.sh[704]: ERROR: cannot create new swapfile: File exists
Diffstat (limited to 'test')
-rwxr-xr-x | test/units/TEST-55-OOMD.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/units/TEST-55-OOMD.sh b/test/units/TEST-55-OOMD.sh index 644a8fcf47..3c9b4391a9 100755 --- a/test/units/TEST-55-OOMD.sh +++ b/test/units/TEST-55-OOMD.sh @@ -24,6 +24,7 @@ fi # Activate swap file if we are in a VM if systemd-detect-virt --vm --quiet; then swapoff --all + rm -f /swapfile if [[ "$(findmnt -n -o FSTYPE /)" == btrfs ]]; then btrfs filesystem mkswapfile -s 64M /swapfile else |