]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - src/PVE/HA/Sim/Hardware.pm
Sim/Hardware: check if testdir exists
[pve-ha-manager.git] / src / PVE / HA / Sim / Hardware.pm
index a2126715fa8dced3c65ef7ccebb885498158a925..be1037d7f04dd13ce110c328a5dcbd006d2ca04c 100644 (file)
@@ -285,6 +285,9 @@ sub new {
 
     die "missing testdir" if !$testdir;
 
+    die "testdir '$testdir' does not exist or is not a directory!\n"
+        if !-d $testdir;
+
     my $class = ref($this) || $this;
 
     my $self = bless {}, $class;