Description: adjust path in test when run under autopkgtest Origin: vendor Forwarded: not-needed Author: gregor herrmann Last-Update: 2026-08-28 --- a/t/vocabularies.t +++ b/t/vocabularies.t @@ -354,12 +354,14 @@ return; } + use Config; + my $dir = $ENV{AUTOPKGTEST_TMP} ? $Config{vendorlib} : 'lib'; my @classes = grep load_module($_)->does('JSON::Schema::Modern::Vocabulary'), map 'JSON::Schema::Modern::Vocabulary::'.$_, map $_->basename =~ s/\.pm\z//r, grep /\.pm\z/, - path('lib/JSON/Schema/Modern/Vocabulary/')->list->each; + path("$dir/JSON/Schema/Modern/Vocabulary/")->list->each; my $table = { map do {