Skip to content

Commit

Permalink
tests/storage-vm: silence shellcheck SC2016
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Apr 19, 2024
1 parent ea9a6b4 commit 392987e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/storage-vm
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,11 @@ for poolDriver in $poolDriverList; do
lxc storage volume delete "${poolName}" vol1

lxc config device add v1 block1 disk source="/tmp/lxd-test-${poolName}/lxd-test-block" readonly=true
# shellcheck disable=SC2016
lxc exec v1 -- sh -c 'for i in $(seq 10); do test -e /sys/block/sdb/ro && break; echo "Waiting for sys file to appear (${i}s)"; sleep 1; done'
[ "$(lxc exec v1 -- cat /sys/block/sdb/ro)" -eq 1 ]
lxc config device set v1 block1 readonly=false
# shellcheck disable=SC2016
lxc exec v1 -- sh -c 'for i in $(seq 10); do test -e /sys/block/sdb/ro && break; echo "Waiting for sys file to appear (${i}s)"; sleep 1; done'
[ "$(lxc exec v1 -- cat /sys/block/sdb/ro)" -eq 0 ]

Expand Down

0 comments on commit 392987e

Please sign in to comment.