Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Update addBackcompatIndexes.py test running to gradle

Jason Gerlowski2a9d70400243
diff --git a/dev-tools/scripts/addBackcompatIndexes.py b/dev-tools/scripts/addBackcompatIndexes.py
index e02163ed43e..ef2ad3ec6bf 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):