In the output of test-create-testdir4, the list of modules in the output is not correctly indented:
--- test-create-testdir-4.out 2024-03-19 17:48:35.022049580 +0100 +++ tmp2229544-out 2024-03-24 01:42:30.769446029 +0100 @@ -1,3262 +1,3342 @@ Module list with included dependencies (indented): - _Exit + _Exit _Exit-tests - absolute-header - accept + absolute-header + accept accept-tests This patch fixes it. 2024-03-23 Bruno Haible <br...@clisp.org> gnulib-tool.py: Fix the modules indentation in --create-testdir' output. * pygnulib/GLTestDir.py (GLTestDir.execute): Use specified_modules instead of self.config.getModules(), since the latter may be empty. diff --git a/pygnulib/GLTestDir.py b/pygnulib/GLTestDir.py index 7feddc0bfe..c618241bc9 100644 --- a/pygnulib/GLTestDir.py +++ b/pygnulib/GLTestDir.py @@ -269,10 +269,12 @@ class GLTestDir(object): bold_on = '\x1b[1m' bold_off = '\x1b[0m' print('Module list with included dependencies (indented):') + specified_modules_set = { str(module) + for module in specified_modules } for module in final_modules: - if str(module) in self.config.getModules(): + if str(module) in specified_modules_set: print(' %s%s%s' % (bold_on, module, bold_off)) - else: # if str(module) not in self.config.getModules() + else: # if str(module) not in specified_modules_set print(' %s' % module) # Generate lists of the modules.