[system/kio-snapshot] autotests: autotests: fix after-recreation subtest
Bharadwaj Raju <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit e16219449c8fef92a4a98e5d666f4791fe67d043 by Bharadwaj Raju. Committed on 14/08/2026 at 18:40. Pushed by bharadwaj-raju into branch 'master'. autotests: fix after-recreation subtest after-recreation had the same mtime as current, so it wouldn't be shown. M +4 -3 autotests/prep_btrfs.sh https://invent.kde.org/system/kio-snapshot/-/commit/e16219449c8fef92a4a98e5d666f4791fe67d043 diff --git a/autotests/prep_btrfs.sh b/autotests/prep_btrfs.sh index a0b66c7..6c6aaa0 100644 --- a/autotests/prep_btrfs.sh +++ b/autotests/prep_btrfs.sh @@ -25,6 +25,8 @@ sudo btrfs subvolume snapshot butter-tray butter-tray/@after-removal echo "again" > butter-tray/file.txt sudo btrfs subvolume snapshot butter-tray butter-tray/@after-recreation +echo "fin" > butter-tray/file.txt # current + sudo btrfs subvolume create butter-tray/sub sudo chown -R $USER:$USER butter-tray/sub sudo btrfs subvolume snapshot butter-tray/sub butter-tray/@sub-initial @@ -36,9 +38,8 @@ sudo btrfs subvolume snapshot butter-tray/sub butter-tray/@sub-after-additions rm butter-tray/sub/vol.txt sudo btrfs subvolume snapshot butter-tray/sub butter-tray/@sub-after-removal echo "again" > butter-tray/sub/vol.txt -sudo btrfs filesystem sync butter-tray -sudo btrfs filesystem sync butter-tray/sub -sleep 1 sudo btrfs subvolume snapshot butter-tray/sub butter-tray/@sub-after-recreation +echo "fin" > butter-tray/sub/vol.txt # current + sudo btrfs filesystem sync butter-tray