From b1226a18af2e572ac883a743108ac0b168789c71 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 22 Mar 2024 16:01:39 +0100 Subject: [PATCH] gnulib-tool.py: Fix an error in --create-testdir. * pygnulib/GLTestDir.py (GLTestDir.execute): Fix chdir calls at the end. --- ChangeLog | 5 +++++ pygnulib/GLTestDir.py | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 46379c5a4c..dfe91dbc36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-03-22 Bruno Haible + + gnulib-tool.py: Fix an error in --create-testdir. + * pygnulib/GLTestDir.py (GLTestDir.execute): Fix chdir calls at the end. + 2024-03-21 Collin Funk gnulib-tool.sh: Avoid a redundant space in gl_AVOID in gnulib-cache.m4. diff --git a/pygnulib/GLTestDir.py b/pygnulib/GLTestDir.py index c450f74099..f85a5f6dbb 100644 --- a/pygnulib/GLTestDir.py +++ b/pygnulib/GLTestDir.py @@ -835,8 +835,8 @@ class GLTestDir(object): for file in tests_built_sources if file not in cleaned_files] + os.chdir(self.testdir) if distributed_built_sources or tests_distributed_built_sources: - os.chdir(self.testdir) sp.call('./configure') if distributed_built_sources: os.chdir(sourcebase) @@ -874,7 +874,6 @@ class GLTestDir(object): 'LIBTOOLIZE=%s' % UTILS['libtoolize'], 'distclean'] sp.call(args) - os.chdir(self.testdir) if isfile(joinpath('build-aux', 'test-driver')): _patch_test_driver() os.chdir(DIRS['cwd']) -- 2.39.5