You've already forked pgbackrest
							
							
				mirror of
				https://github.com/pgbackrest/pgbackrest.git
				synced 2025-10-30 23:37:45 +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:
		
							
								
								
									
										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')); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user