From 2a697431c736946b12ab1c81f92ad124ead8401b Mon Sep 17 00:00:00 2001 From: mck Date: Mon, 8 Jun 2026 23:11:33 +0200 Subject: [PATCH] in cqlshlib unit reports also remove wrapping elements with attributes patch by Mick Semb Wever; reviewed by Dmitry Konstantinov for CASSANDRA-21442 --- pylib/cassandra-cqlsh-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/cassandra-cqlsh-tests.sh b/pylib/cassandra-cqlsh-tests.sh index 1c0ddbb5bf..7d621e3230 100755 --- a/pylib/cassandra-cqlsh-tests.sh +++ b/pylib/cassandra-cqlsh-tests.sh @@ -113,7 +113,7 @@ pytest --junitxml=${BUILD_DIR}/test/output/cqlshlib.xml RETURN="$?" # remove wrapping elements. `ant generate-unified-test-report` doesn't like it` -sed -r "s/<[\/]?testsuites>//g" ${BUILD_DIR}/test/output/cqlshlib.xml > /tmp/cqlshlib.xml +sed -r "s/<[\/]?testsuites[^>]*>//g" ${BUILD_DIR}/test/output/cqlshlib.xml > /tmp/cqlshlib.xml cat /tmp/cqlshlib.xml > ${BUILD_DIR}/test/output/cqlshlib.xml # don't do inline sed for linux+mac compat