This is an automated email from the ASF dual-hosted git repository.

smiklosovic pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 866f4bb4 ninja: fix accord-core lib regexp
866f4bb4 is described below

commit 866f4bb40703c93231cb992e3747710953e81d56
Author: Stefan Miklosovic <[email protected]>
AuthorDate: Mon Mar 23 14:04:29 2026 +0100

    ninja: fix accord-core lib regexp
---
 read_repair_test.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/read_repair_test.py b/read_repair_test.py
index fe487a34..408bdb4e 100644
--- a/read_repair_test.py
+++ b/read_repair_test.py
@@ -2,6 +2,7 @@ from contextlib import contextmanager
 import glob
 import os
 import time
+import re
 from ccmlib.version import LooseVersion
 
 import pytest
@@ -37,8 +38,11 @@ def byteman_validate(node, script, verbose=False, opts=None):
         os.path.join(cdir, 'build', '*'),
     ]
 
+    pattern = 
re.compile(r'accord-core-[0-9]+\.[0-9]+(\.[0-9]+)?(-(alpha|beta|rc)[0-9]+)?(-SNAPSHOT)?\.jar$')
+
     if os.path.exists(os.path.join(cdir, 'modules', 'accord')):
-        jars.append(glob.glob(os.path.join(cdir, 'modules', 'accord', 
'accord-core', 'build', 'libs', 'accord-core-[0-9].[0-9]-SNAPSHOT.jar'))[0])
+        candidates = glob.glob(os.path.join(cdir, 'modules', 'accord', 
'accord-core', 'build', 'libs', 'accord-core-*.jar'))
+        jars.append([c for c in candidates if pattern.search(c)][0])
 
     byteman_cmd.append(':'.join(jars))
     byteman_cmd.append('org.jboss.byteman.check.TestScript')


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to