tests: update pvesr_lock_path variable location

This commit is contained in:
Wolfgang Bumiller 2017-06-27 14:55:44 +02:00 committed by Dietmar Maurer
parent 2e9d791ee6
commit 5b35845009
2 changed files with 2 additions and 2 deletions

View File

@ -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) = @_;

View File

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