Commit d706e36b authored by Francesc Guasch's avatar Francesc Guasch
Browse files

test: check NBD is unloaded after run the test

parent 4781c0b8
......@@ -1981,6 +1981,16 @@ sub DESTROY {
sub _check_leftovers {
_check_leftovers_users();
_check_leftovers_domains();
_check_removed_nbd();
}
sub _check_removed_nbd {
return if $<;
my ($in, $out, $err);
my @cmd = ('rmmod',"nbd");
run3(\@cmd,\$in,\$out,\$err);
BAIL_OUT($err) if $err && $err !~ /not currently loaded/;
}
sub _check_leftovers_domains {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment