Update addVersion.py test running to gradle

This commit is contained in:
Jason Gerlowski 2020-10-09 10:25:19 -04:00
parent f97208a790
commit 178d83d635
1 changed files with 2 additions and 8 deletions

View File

@ -162,18 +162,12 @@ def update_solrconfig(filename, matcher, new_version):
def check_lucene_version_tests(): def check_lucene_version_tests():
print(' checking lucene version tests...', end='', flush=True) print(' checking lucene version tests...', end='', flush=True)
base_dir = os.getcwd() run('./gradlew -p lucene/core test --tests TestVersion')
os.chdir('lucene/core')
run('ant test -Dtestcase=TestVersion')
os.chdir(base_dir)
print('ok') print('ok')
def check_solr_version_tests(): def check_solr_version_tests():
print(' checking solr version tests...', end='', flush=True) print(' checking solr version tests...', end='', flush=True)
base_dir = os.getcwd() run('./gradlew -p solr/core test --tests TestLuceneMatchVersion')
os.chdir('solr/core')
run('ant test -Dtestcase=TestLuceneMatchVersion')
os.chdir(base_dir)
print('ok') print('ok')
def read_config(current_version): def read_config(current_version):