mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-12 10:04:14 +02:00
Show diff when test.pl --gen-check detects unexpected autogeneration.
This will help track down autogeneration issues if they can't be reproduced locally.
This commit is contained in:
parent
ba351e9c5c
commit
a69a6c2f55
15
test/test.pl
15
test/test.pl
@ -520,7 +520,10 @@ eval
|
||||
# Error when checking that files have already been generated but they change
|
||||
if ($bGenCheck && @stryBuilt)
|
||||
{
|
||||
confess &log(ERROR, "unexpected autogeneration of version in configure.ac script: " . join(', ', @stryBuilt));
|
||||
confess &log(
|
||||
ERROR,
|
||||
"unexpected autogeneration of version in configure.ac script: " . join(', ', @stryBuilt) . ":\n" .
|
||||
trim(executeTest("git -C ${strBackRestBase} diff")));
|
||||
}
|
||||
|
||||
&log(INFO,
|
||||
@ -578,7 +581,10 @@ eval
|
||||
# Error when checking that files have already been generated but they change
|
||||
if ($bGenCheck && @stryBuilt)
|
||||
{
|
||||
confess &log(ERROR, "unexpected autogeneration of configure script: " . join(', ', @stryBuilt));
|
||||
confess &log(
|
||||
ERROR,
|
||||
"unexpected autogeneration of configure script: " . join(', ', @stryBuilt) . ":\n" .
|
||||
trim(executeTest("git -C ${strBackRestBase} diff")));
|
||||
}
|
||||
|
||||
&log(INFO, " autogenerated configure script: " . (@stryBuilt ? join(', ', @stryBuilt) : 'no changes'));
|
||||
@ -623,7 +629,10 @@ eval
|
||||
# Error when checking that files have already been generated but they change
|
||||
if ($bGenCheck && @stryBuilt)
|
||||
{
|
||||
confess &log(ERROR, "unexpected autogeneration of C code: " . join(', ', @stryBuilt));
|
||||
confess &log(
|
||||
ERROR,
|
||||
'unexpected autogeneration of C code: ' . join(', ', @stryBuilt) . ":\n" .
|
||||
trim(executeTest("git -C ${strBackRestBase} diff")));
|
||||
}
|
||||
|
||||
&log(INFO, " autogenerated C code: " . (@stryBuilt ? join(', ', @stryBuilt) : 'no changes'));
|
||||
|
Loading…
Reference in New Issue
Block a user