Debian Codegraph @

debian/patches/autopkgtest.patch

raw
1 Description: adjust path in test when run under autopkgtest
2 Origin: vendor
3 Forwarded: not-needed
4 Author: gregor herrmann <[email protected]>
5 Last-Update: 2026-08-28
6
7 --- a/t/vocabularies.t
8 +++ b/t/vocabularies.t
9 @@ -354,12 +354,14 @@
10 return;
11 }
12
13 + use Config;
14 + my $dir = $ENV{AUTOPKGTEST_TMP} ? $Config{vendorlib} : 'lib';
15 my @classes =
16 grep load_module($_)->does('JSON::Schema::Modern::Vocabulary'),
17 map 'JSON::Schema::Modern::Vocabulary::'.$_,
18 map $_->basename =~ s/\.pm\z//r,
19 grep /\.pm\z/,
20 - path('lib/JSON/Schema/Modern/Vocabulary/')->list->each;
21 + path("$dir/JSON/Schema/Modern/Vocabulary/")->list->each;
22
23 my $table = {
24 map do {