From f246abcac6ff0868e12633c13139d68c99b7b9c0 Mon Sep 17 00:00:00 2001
From: Nazir Bilal Yavuz <byavuz81@gmail.com>
Date: Thu, 26 Sep 2024 10:24:52 +0300
Subject: [PATCH v3 2/2] Expand test selection behavior to all test types in
 meson based builds

Previously, the ability to select specific tests to run was limited to
regress/regress tests. This commit extends that functionality to all test
types in the meson based builds.
---
 src/tools/testwrap | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/tools/testwrap b/src/tools/testwrap
index d78deb529a8..e8686b602f8 100755
--- a/src/tools/testwrap
+++ b/src/tools/testwrap
@@ -43,11 +43,10 @@ env_dict = {**os.environ,
             'TESTDATADIR': os.path.join(testdir, 'data'),
             'TESTLOGDIR': os.path.join(testdir, 'log')}
 
-# Symmetric behaviour with make check-tests. If TESTS environment variable is
-# set, only run these tests in regress/regress test. Note that setup suite
-# tests (at least tmp_install and initdb_cache tests) may need to be run before
-# running these tests.
-if "TESTS" in env_dict and args.testgroup == 'regress' and args.testname == 'regress':
+# If TESTS environment variable is set, only run these tests. Note that setup
+# suite tests (at least tmp_install and initdb_cache tests) may need to be run
+# before running these tests.
+if "TESTS" in env_dict:
     args.test_command.extend(env_dict["TESTS"].split(' '))
 else:
     if args.schedule:
-- 
2.45.2

