]> git.proxmox.com Git - pve-storage.git/blobdiff - test/disklist_test.pm
Diskmanage: replace check for zpool binary with a function and mock it
[pve-storage.git] / test / disklist_test.pm
index bfce1ea27352c83024c1f1cbb373185feccad921..7f0e0be86e73ae8159c344eb60f1a587ca92acac 100644 (file)
@@ -244,6 +244,8 @@ $diskmanage_module->mock('dir_is_empty' => sub {
        return 1;
     });
 print("\tMocked dir_is_empty\n");
+$diskmanage_module->mock('check_bin' => sub { return 1; });
+print("\tMocked check_bin\n");
 my $tools_module= new Test::MockModule('PVE::ProcFSTools', no_auto => 1);
 $tools_module->mock('parse_proc_mounts' => \&mocked_parse_proc_mounts);
 print("\tMocked parse_proc_mounts\n");