File: autopkgtest.patch

package info (click to toggle)
libjson-schema-modern-perl 0.619-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,372 kB
  • sloc: perl: 4,014; makefile: 9
file content (24 lines) | stat: -rw-r--r-- 699 bytes parent folder | download
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 {