[pve-devel] [PATCH v2 manager 2/2] test: allow access to the cluster-wide 'vzdump.conf'
Leo Nunner
l.nunner at proxmox.com
Tue Mar 7 13:11:05 CET 2023
The hardcoded filename check for cluster file access needs to include
'vzdump.conf', since vzdump now always tries to read that file when
parsing configurations.
Signed-off-by: Leo Nunner <l.nunner at proxmox.com>
---
test/vzdump_new_test.pl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/vzdump_new_test.pl b/test/vzdump_new_test.pl
index 8cd73075..64f8e0a1 100755
--- a/test/vzdump_new_test.pl
+++ b/test/vzdump_new_test.pl
@@ -58,7 +58,9 @@ $pve_cluster_module->mock(
get_config => sub {
my ($filename) = @_;
- die "unexpected filename '$filename'\n" if $filename ne 'storage.cfg';
+ if(!grep(/^$filename$/, ('storage.cfg', 'vzdump.conf'))) {
+ die "unexpected filename '$filename'\n";
+ }
return $storage_config;
},
# never update during the tests
--
2.30.2
More information about the pve-devel
mailing list