]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
nbd/001: change to use lsblk raw output format
authorYi Zhang <yi.zhang@redhat.com>
Tue, 20 Feb 2024 14:55:52 +0000 (22:55 +0800)
committerYi Zhang <yi.zhang@redhat.com>
Tue, 20 Feb 2024 14:59:06 +0000 (22:59 +0800)
lsblk -n ouput format changed due to the substantial changes
in libsmartcols, which lsblk relies on for generating output,
fix it by using the raw format

Fixes: #132
Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
tests/nbd/001
tests/nbd/001.out

index 8c93e90f5ae5ec7171b046388b77a95140c8851c..9427f8ed60cfdaa7376b17609f958522fba67be7 100755 (executable)
@@ -19,12 +19,12 @@ test() {
        _start_nbd_server
        nbd-client -L -N export localhost /dev/nbd0 >> "$FULL" 2>&1
        parted -s /dev/nbd0 print 2>> "$FULL" | grep 'Disk /dev/nbd0'
-       lsblk -n /dev/nbd0
+       lsblk --raw --noheadings /dev/nbd0
 
        echo "Setting size to 1gib"
        src/nbdsetsize /dev/nbd0 1073741824
 
-       lsblk -n /dev/nbd0
+       lsblk --raw --noheadings /dev/nbd0
        parted -s /dev/nbd0 print 2>> "$FULL" | grep 'Disk /dev/nbd0'
 
        nbd-client -d /dev/nbd0 >> "$FULL" 2>&1
index 2f2aff0cf0b883c680465a4d45f51f36ec4ba599..81e1a487ada1565dac8381fb3adeee8c85ade04e 100644 (file)
@@ -1,6 +1,6 @@
 Running nbd/001
 Disk /dev/nbd0: 10.7GB
-nbd0  43:0    0  10G  0 disk 
+nbd0 43:0 0 10G 0 disk 
 Setting size to 1gib
-nbd0  43:0    0   1G  0 disk 
+nbd0 43:0 0 1G 0 disk 
 Disk /dev/nbd0: 1074MB