1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: adjust path in test when run under autopkgtest
Origin: vendor
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2025-10-04
--- a/t/vocabularies.t
+++ b/t/vocabularies.t
@@ -353,12 +353,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$//r,
grep /\.pm$/,
- Path::Tiny::path('lib/JSON/Schema/Modern/Vocabulary/')->children;
+ Path::Tiny::path("$dir/JSON/Schema/Modern/Vocabulary/")->children;
my $table = {
map {
|