|
0 |
From: Akinori Hattori <hattya@gentoo.org>
|
|
1 |
Date: Wed, 6 May 2020 20:23:43 +0900
|
|
2 |
Subject: Fix tests that use msginit
|
|
3 |
|
|
4 |
The value of 'Project-Id-Version' depends on the root directory of po4a.
|
|
5 |
---
|
|
6 |
t/Testhelper.pm | 4 ++--
|
|
7 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
8 |
|
|
9 |
diff --git a/t/Testhelper.pm b/t/Testhelper.pm
|
|
10 |
index 98cd5ce..ee60eee 100644
|
|
11 |
--- a/t/Testhelper.pm
|
|
12 |
+++ b/t/Testhelper.pm
|
|
13 |
@@ -95,7 +95,7 @@ $ENV{'COLUMNS'} = "80";
|
|
14 |
my $execpath = defined $ENV{AUTOPKGTEST_TMP} ? "/usr/bin" : "perl ..";
|
|
15 |
|
|
16 |
my $PODIFF =
|
|
17 |
- "-I'Copyright (C) 20.. Free Software Foundation, Inc.' -I'^# Automatically generated, 20...' -I'^\"POT-Creation-Date:' -I'^\"PO-Revision-Date:'";
|
|
18 |
+ "-I'Copyright (C) 20.. Free Software Foundation, Inc.' -I'^# Automatically generated, 20...' -I'^\"Project-Id-Version:' -I'^\"POT-Creation-Date:' -I'^\"PO-Revision-Date:'";
|
|
19 |
|
|
20 |
sub show_files {
|
|
21 |
my $basename = shift;
|
|
22 |
@@ -121,7 +121,7 @@ sub system_failed {
|
|
23 |
$expected_exit_status //= 0;
|
|
24 |
my $exit_status = system($cmd);
|
|
25 |
$cmd =~
|
|
26 |
- s/diff -u -I'Copyright .C. 20.. Free Software Foundation, Inc.' -I'.. Automatically generated, 20...' -I'."POT-Creation-Date:' -I'."PO-Revision-Date:'/PODIFF/g;
|
|
27 |
+ s/diff -u -I'Copyright .C. 20.. Free Software Foundation, Inc.' -I'.. Automatically generated, 20...' -I'."Project-Id-Version:' -I'."POT-Creation-Date:' -I'."PO-Revision-Date:'/PODIFF/g;
|
|
28 |
$cmd =~ s{$root_dir/}{}g;
|
|
29 |
$cmd =~ s{t/../po4a}{po4a};
|
|
30 |
|