tests: update pvesr_lock_path variable location
This commit is contained in:
parent
2e9d791ee6
commit
5b35845009
@ -18,7 +18,7 @@ use PVE::RESTHandler;
|
||||
|
||||
use base qw(PVE::RESTHandler);
|
||||
|
||||
my $pvesr_lock_path = "/var/lock/pvesr.lck";
|
||||
our $pvesr_lock_path = "/var/lock/pvesr.lck";
|
||||
|
||||
our $lookup_guest_class = sub {
|
||||
my ($vmtype) = @_;
|
||||
|
@ -66,7 +66,7 @@ my $statefile = ".mocked_repl_state";
|
||||
unlink $statefile;
|
||||
$PVE::ReplicationState::state_path = $statefile;
|
||||
$PVE::ReplicationState::state_lock = ".mocked_repl_state_lock";
|
||||
$PVE::Replication::pvesr_lock_path = ".mocked_pvesr_lock";
|
||||
$PVE::API2::Replication::pvesr_lock_path = ".mocked_pvesr_lock";
|
||||
$PVE::GuestHelpers::lockdir = ".mocked_pve-manager_lock";
|
||||
|
||||
if (!mkdir($PVE::GuestHelpers::lockdir) && !$!{EEXIST}) {
|
||||
|
Loading…
Reference in New Issue
Block a user