[pve-devel] [PATCH manager 1/2] tests: update pvesr_lock_path variable location

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Jun 27 14:55:44 CEST 2017


---
 PVE/API2/Replication.pm        | 2 +-
 bin/test/ReplicationTestEnv.pm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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}) {
-- 
2.11.0





More information about the pve-devel mailing list