diff options
author | Bruno Haible <bruno@clisp.org> | 2022-08-04 19:10:27 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-08-04 19:10:27 +0200 |
commit | 895f7af02c482e218745550c87e77d21d5aaaa25 (patch) | |
tree | 6b0bebd00a08e9b2b7562c9124033abb57dd8a59 /pygnulib/GLTestDir.py | |
parent | af4eb877e856092bb2963661675f301806cf67c7 (diff) | |
download | gnulib-895f7af02c482e218745550c87e77d21d5aaaa25.tar.gz |
gnulib-tool.py: Simplify boolean setters.
* pygnulib/GLConfig.py (setLibtool): New method, replaces enableLibtool
and disableLibtool.
(setCondDeps): New method, replaces enableCondDeps and disableCondDeps.
(setVCFiles): New method, replaces enableVCFiles and disableVCFiles.
(setSymbolic): New method, replaces enableSymbolic and disableSymbolic.
(setLSymbolic): New method, replaces enableLSymbolic and
disableLSymbolic.
(setLibtests): New method, replaces enableLibtests and disableLibtests.
(setSingleConfigure): New method, replaces enableSingleConfigure and
disableSingleConfigure.
(setDryRun): New method, replaces enableDryRun and disableDryRun.
(setErrors): New method, replaces enableErrors and disableErrors.
(__init__): Update.
* pygnulib/GLImport.py: Likewise.
* pygnulib/GLTestDir.py: Likewise.
Diffstat (limited to 'pygnulib/GLTestDir.py')
-rw-r--r-- | pygnulib/GLTestDir.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygnulib/GLTestDir.py b/pygnulib/GLTestDir.py index 056eef3ee0..285b94ba10 100644 --- a/pygnulib/GLTestDir.py +++ b/pygnulib/GLTestDir.py @@ -266,7 +266,7 @@ class GLTestDir(object): libtests = True break if libtests: - self.config.enableLibtests() + self.config.setLibtests(True) if single_configure: # Add dummy package if it is needed. @@ -414,7 +414,7 @@ class GLTestDir(object): # Create $testsbase/Makefile.am. destfile = joinpath(directory, 'Makefile.am') libtests = False - self.config.disableLibtests() + self.config.setLibtests(False) emit, uses_subdirs = self.emiter.tests_Makefile_am(destfile, modules, self.makefiletable, '', for_test) with codecs.open(destfile, 'wb', 'UTF-8') as file: |