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-builds.git


The following commit(s) were added to refs/heads/trunk by this push:
     new f63d4a2  ninja-fix: negate condition on version filtering 
(CASSANDRA-18133)
f63d4a2 is described below

commit f63d4a27c92e8578c3ecd78dd0d2218a1c69966d
Author: Stefan Miklosovic <[email protected]>
AuthorDate: Thu Oct 19 09:17:48 2023 +0200

    ninja-fix: negate condition on version filtering (CASSANDRA-18133)
---
 build-scripts/cassandra-dtest-pytest.sh | 2 +-
 build-scripts/cassandra-test.sh         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-scripts/cassandra-dtest-pytest.sh 
b/build-scripts/cassandra-dtest-pytest.sh
index 208b14a..824d09a 100755
--- a/build-scripts/cassandra-dtest-pytest.sh
+++ b/build-scripts/cassandra-dtest-pytest.sh
@@ -33,7 +33,7 @@ java_version=$(java -version 2>&1 | awk -F '"' '/version/ 
{print $2}' | awk -F.
 version=$(grep 'property\s*name=\"base.version\"' build.xml |sed -ne 
's/.*value=\"\([^"]*\)\".*/\1/p')
 regx_version="(2.2|3.0|3.11|4.0|4.1)(.([0-9]+))?$"
 
-if [[ $version =~ $regx_version ]] ; then
+if [[ ! $version =~ $regx_version ]] ; then
     echo "This script is deprecated, having been migrated to be in-tree since 
5.0, see .build/run-python-dtests.sh"
     exit 1
 fi
diff --git a/build-scripts/cassandra-test.sh b/build-scripts/cassandra-test.sh
index e623cc3..a0046c5 100755
--- a/build-scripts/cassandra-test.sh
+++ b/build-scripts/cassandra-test.sh
@@ -88,7 +88,7 @@ _main() {
   local -r version=$(grep 'property\s*name=\"base.version\"' build.xml |sed 
-ne 's/.*value=\"\([^"]*\)\".*/\1/p')
   local -r regx_version="(2.2|3.0|3.11|4.0|4.1)(.([0-9]+))?$"
 
-  if [[ $version =~ $regx_version ]] ; then
+  if [[ ! $version =~ $regx_version ]] ; then
       echo "This script is deprecated, having been migrated to be in-tree 
since 5.0, see .build/run-tests.sh"
       exit 1
   fi


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

Reply via email to