ci: use sudo test if the device is a block
Permissions on the disk might changed due to the partitions being created. So the CI user is not able to read the device correctly. Closes: https://github.com/rook/rook/issues/6580 Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
1 parent
26b575c2c6
commit
dcd84e63ac
1 file changed
+3
-5
@@ -9,12 +9,10 @@ fi
|
||||
db_device=$2
|
||||
wal_device=$3
|
||||
|
||||
lsblk
|
||||
sudo lsblk
|
||||
|
||||
sudo test ! -b "${test_scratch_device}" && echo "invalid scratch device, not a block device: ${test_scratch_device}" >&2 && exit 1
|
||||
|
||||
if [ ! -b "${test_scratch_device}" ] ; then
|
||||
echo "invalid scratch device, not a block device: ${test_scratch_device}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sudo rm -rf /var/lib/rook/rook-integration-test
|
||||
sudo mkdir -p /var/lib/rook/rook-integration-test/mon1 /var/lib/rook/rook-integration-test/mon2 /var/lib/rook/rook-integration-test/mon3
|
||||
|
||||
Reference in new issue
Block a user