config: use relative paths for content overrides
Remove the requirement for paths to start with a /, as it might be confusing to users. Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
574fb9ad11
commit
a3c30c6871
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user