From: Wolfgang Bumiller Date: Tue, 27 Jun 2017 12:55:44 +0000 (+0200) Subject: tests: update pvesr_lock_path variable location X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5b3584500963bfd0f530dd7fe5d523cdf803e64d;p=pve-manager.git tests: update pvesr_lock_path variable location --- diff --git a/PVE/API2/Replication.pm b/PVE/API2/Replication.pm index ddfc2d0e..08e2a06b 100644 --- a/PVE/API2/Replication.pm +++ b/PVE/API2/Replication.pm @@ -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) = @_; diff --git a/bin/test/ReplicationTestEnv.pm b/bin/test/ReplicationTestEnv.pm index d54d9fd6..5f67f10e 100755 --- a/bin/test/ReplicationTestEnv.pm +++ b/bin/test/ReplicationTestEnv.pm @@ -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}) {