]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
nvme/00[234]: clean up modules after running
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Sun, 3 Jun 2018 19:01:26 +0000 (15:01 -0400)
committerOmar Sandoval <osandov@fb.com>
Tue, 5 Jun 2018 00:12:38 +0000 (17:12 -0700)
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
tests/nvme/002
tests/nvme/003
tests/nvme/004

index 45e1ab7cad8c0ae06bb5c01d334a4b8c07a82078..786505e222569bc51fbc5b4fb562062e7f030a2f 100755 (executable)
@@ -53,5 +53,7 @@ test() {
 
        _remove_nvmet_port "${port}"
 
+       modprobe -r nvme-loop
+       modprobe -r nvmet
        echo "Test complete"
 }
index 5639804be845bae48a1df16d3ce5031aff99fba7..96341309baf67eb5a40737c22746caf92290bae1 100755 (executable)
@@ -59,5 +59,7 @@ test() {
        _remove_nvmet_subsystem "blktests-subsystem-1"
        _remove_nvmet_port "${port}"
 
+       modprobe -r nvme-loop
+       modprobe -r nvmet
        echo "Test complete"
 }
index 2f970b366d4129847ec7b23c19d59b925d28fb65..ad268e2eec839cb323fd2b413ba4f292e0caff1e 100755 (executable)
@@ -58,5 +58,7 @@ test() {
        losetup -d "$loop_dev"
        rm "$TMPDIR/img"
 
+       modprobe -r nvme-loop
+       modprobe -r nvmet
        echo "Test complete"
 }