]> git.proxmox.com Git - pve-storage.git/blobdiff - test/get_subdir_test.pm
config: use relative paths for content overrides
[pve-storage.git] / test / get_subdir_test.pm
index ff42985bb783d049011cf405fac196d0e88be912..b9d61d5050d2e17a8068813def7b7a3bc90b20c9 100644 (file)
@@ -29,9 +29,9 @@ foreach my $type (keys %$vtype_subdirs) {
 
 # creates additional tests for overrides
 foreach my $type (keys %$vtype_subdirs) {
-    my $override = "/${type}_override";
+    my $override = "${type}_override";
     my $scfg_with_override = { path => '/some/path', 'content-dirs' => { $type => $override } };
-    push @$tests, [ $scfg_with_override, $type, "$scfg_with_override->{path}$scfg_with_override->{'content-dirs'}->{$type}" ];
+    push @$tests, [ $scfg_with_override, $type, "$scfg_with_override->{path}/$scfg_with_override->{'content-dirs'}->{$type}" ];
 }
 
 plan tests => scalar @$tests;