+2024-04-12 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool.py: Implement --add-import --with-*-tests correctly.
+ * pygnulib/GLConfig.py (GLConfig.update): Use list-merging for the test
+ categories.
+ * pygnulib/GLImport.py (GLImport.__init__): Don't merge back those
+ values which were already considered by taking the union.
+
2024-04-12 Bruno Haible <bruno@clisp.org>
gnulib-tool.py: Implement --add-import --avoid correctly.
if self.isdefault(key, dest):
value = src
else: # if not self.isdefault(key, dest)
- if key in ['modules', 'avoids']:
+ if key in ['modules', 'avoids',
+ 'incl_test_categories', 'excl_test_categories']:
value = sorted(set(src + dest))
else:
value = dest
# Merge with the configuration from the command-line parameters;
# they override the configuration found on disk.
for key in config.keys():
- if key not in ['modules', 'avoids']:
+ if key not in ['modules', 'avoids',
+ 'incl_test_categories', 'excl_test_categories']:
value = config[key]
if not config.isdefault(key, value):
self.config.update_key(config, key)