+2024-03-23 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool.py: Produce same diagnostics regardless of Automake version.
+ * pygnulib/GLTestDir.py (_patch_test_driver): Suppress the diagnostics
+ from 'patch', and instead provide our own diagnostics.
+
2024-03-23 Bruno Haible <bruno@clisp.org>
gnulib-tool.py: Print "executing touch config.h.in".
def _patch_test_driver() -> None:
'''Patch the test-driver script in testdirs.'''
test_driver = joinpath('build-aux', 'test-driver')
+ print('patching file %s' % test_driver)
diffs = [ joinpath(DIRS['root'], name)
for name in [joinpath('build-aux', 'test-driver.diff'),
joinpath('build-aux', 'test-driver-1.16.3.diff')]]
for diff in diffs:
command = f'patch {test_driver} < {diff}'
try:
- result = sp.call(command, shell=True)
+ result = sp.call(command, shell=True, stdout=sp.DEVNULL, stderr=sp.DEVNULL)
except OSError:
if isfile(f'{test_driver}.orig'):
os.remove(f'{test_driver}.orig')