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 15:33:07 UTC

[lucene-solr] branch master updated: Update addBackcompatIndexes.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 2a9d704  Update addBackcompatIndexes.py test running to gradle
2a9d704 is described below

commit 2a9d70400243be15b5bb752badffc82bf2271128
Author: Jason Gerlowski <ja...@lucidworks.com>
AuthorDate: Fri Oct 9 11:32:49 2020 -0400

    Update addBackcompatIndexes.py test running to gradle
---
 dev-tools/scripts/addBackcompatIndexes.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dev-tools/scripts/addBackcompatIndexes.py b/dev-tools/scripts/addBackcompatIndexes.py
index e02163e..ef2ad3e 100755
--- a/dev-tools/scripts/addBackcompatIndexes.py
+++ b/dev-tools/scripts/addBackcompatIndexes.py
@@ -164,10 +164,7 @@ def update_backcompat_tests(types, index_version, current_version):
 
 def check_backcompat_tests():
   print('  checking backcompat tests...', end='', flush=True)
-  olddir = os.getcwd()
-  os.chdir('lucene/backward-codecs')
-  scriptutil.run('ant test -Dtestcase=TestBackwardsCompatibility')
-  os.chdir(olddir)
+  scriptutil.run('./gradlew -p lucene/backward-codecs test --tests TestBackwardsCompatibility')
   print('ok')
 
 def download_from_mirror(version, remotename, localname):