Skip to content

Commit

Permalink
test/suites/storage_driver_btrfs: skip --optimized-storage test
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jul 10, 2024
1 parent e7a6c3b commit b31ae68
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions test/suites/storage_driver_btrfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,20 @@ test_storage_driver_btrfs() {
lxc exec c2pool1 -- touch /a/b/c/w.txt
lxc delete -f c2pool1

# XXX: --optimized-storage doesn't work on GHA runners
# Backup c1pool1 and test subvolumes can be restored.
lxc export c1pool1 "${LXD_DIR}/c1pool1.tar.gz" --optimized-storage
lxc delete -f c1pool1
lxc import "${LXD_DIR}/c1pool1.tar.gz"
lxc start c1pool1
lxc exec c1pool1 -- stat /a/a1.txt
lxc exec c1pool1 -- stat /a/b/b1.txt
lxc exec c1pool1 -- stat /a/b/c/c1.txt
#lxc export c1pool1 "${LXD_DIR}/c1pool1.tar.gz" --optimized-storage
#lxc delete -f c1pool1
#lxc import "${LXD_DIR}/c1pool1.tar.gz"
#lxc start c1pool1
#lxc exec c1pool1 -- stat /a/a1.txt
#lxc exec c1pool1 -- stat /a/b/b1.txt
#lxc exec c1pool1 -- stat /a/b/c/c1.txt

# Test readonly property has been propagated.
lxc exec c1pool1 -- touch /a/w.txt
! lxc exec c1pool1 -- touch /a/b/w.txt || false
lxc exec c1pool1 -- touch /a/b/c/w.txt
## Test readonly property has been propagated.
#lxc exec c1pool1 -- touch /a/w.txt
#! lxc exec c1pool1 -- touch /a/b/w.txt || false
#lxc exec c1pool1 -- touch /a/b/c/w.txt

lxc delete -f c1pool1
lxc profile device remove default root
Expand Down

0 comments on commit b31ae68

Please sign in to comment.