]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
gnulib-tool.py: Fix undefined variable while emitting testdir.
authorCollin Funk <collin.funk1@gmail.com>
Wed, 21 Feb 2024 16:54:51 +0000 (08:54 -0800)
committerBruno Haible <bruno@clisp.org>
Wed, 21 Feb 2024 17:28:00 +0000 (18:28 +0100)
* pygnulib/GLTestDir.py (GLTestDir.execute): Fix undefined
variable refrence caused by commit
01cd78f9d682ff75cc5ab1c2d21b911bdd9215b8.
Restore the previous auxdir when finished writing the
configure.ac file in the test directory.

ChangeLog
pygnulib/GLTestDir.py

index 9779a09ac613a854f25fb28989f13aac958d84d5..e313032178730dfc1bde84778c5f743ea5a93366 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-02-21  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Fix undefined variable while emitting testdir.
+       * pygnulib/GLTestDir.py (GLTestDir.execute): Fix undefined
+       variable refrence caused by commit
+       01cd78f9d682ff75cc5ab1c2d21b911bdd9215b8.
+       Restore the previous auxdir when finished writing the
+       configure.ac file in the test directory.
+
 2024-02-21  Bruno Haible  <bruno@clisp.org>
 
        *printf-posix: Disable support for the 'n' directive by default.
index ae8537cff4c0dbde782767fb31ba89929d0f72cd..144798bd016ca3426417064609cfa5201f28f811 100644 (file)
@@ -406,6 +406,7 @@ class GLTestDir(object):
                     file.write(emit)
                 # Viewed from the $testsbase subdirectory, $auxdir is different.
                 emit = ''
+                saved_auxdir = auxdir
                 auxdir = os.path.normpath(joinpath(relinverse(testsbase), auxdir))
                 self.config.setAuxDir(auxdir)
                 # Create $testsbase/configure.ac.