You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ge...@apache.org on 2020/10/09 14:25:33 UTC

[lucene-solr] branch master updated: Update addVersion.py test running to gradle

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

gerlowskija pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 178d83d  Update addVersion.py test running to gradle
178d83d is described below

commit 178d83d635b6663d82bd94c111ee1ee4cdd66d52
Author: Jason Gerlowski <ja...@lucidworks.com>
AuthorDate: Fri Oct 9 10:25:19 2020 -0400

    Update addVersion.py test running to gradle
---
 dev-tools/scripts/addVersion.py | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/dev-tools/scripts/addVersion.py b/dev-tools/scripts/addVersion.py
index 0fc0c5a..72c9a0d 100755
--- a/dev-tools/scripts/addVersion.py
+++ b/dev-tools/scripts/addVersion.py
@@ -162,18 +162,12 @@ def update_solrconfig(filename, matcher, new_version):
 
 def check_lucene_version_tests():
   print('  checking lucene version tests...', end='', flush=True)
-  base_dir = os.getcwd()
-  os.chdir('lucene/core') 
-  run('ant test -Dtestcase=TestVersion')
-  os.chdir(base_dir)
+  run('./gradlew -p lucene/core test --tests TestVersion')
   print('ok')
 
 def check_solr_version_tests():
   print('  checking solr version tests...', end='', flush=True)
-  base_dir = os.getcwd()
-  os.chdir('solr/core') 
-  run('ant test -Dtestcase=TestLuceneMatchVersion')
-  os.chdir(base_dir)
+  run('./gradlew -p solr/core test --tests TestLuceneMatchVersion')
   print('ok')
 
 def read_config(current_version):