]> www.infradead.org Git - users/hch/blktests.git/commitdiff
tests/nvme/031: add the missing steps for loop_dev clean up
authorYi Zhang <yi.zhang@redhat.com>
Mon, 31 May 2021 04:46:21 +0000 (12:46 +0800)
committerOmar Sandoval <osandov@fb.com>
Tue, 1 Jun 2021 17:08:38 +0000 (10:08 -0700)
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
tests/nvme/031

index 36263ca2379c829637f80934f545dc3445ec3f74..7c18a6444b53b3a63a4adfd61fdad5ec2ffdb411 100755 (executable)
@@ -49,6 +49,8 @@ test() {
        done
 
        _remove_nvmet_port "${port}"
+       losetup -d "$loop_dev"
+       rm "$TMPDIR/img"
 
        echo "Test complete"
 }