From: Luca Boccassi Date: Tue, 5 Nov 2024 18:15:36 +0000 (+0000) Subject: test: delete /swapfile after swapoff X-Git-Tag: v257-rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78b032d727e8f9e925c10c6617a1e409307ffc24;p=thirdparty%2Fsystemd.git 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 --- diff --git a/test/units/TEST-55-OOMD.sh b/test/units/TEST-55-OOMD.sh index 644a8fcf471..3c9b4391a96 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