From 678f590062bd97b1f7283edd04cdece27e9f6d63 Mon Sep 17 00:00:00 2001 From: "Billah, Tashrif" Date: Fri, 22 Jan 2021 12:00:37 -0500 Subject: [PATCH] always get test data from v2.0 we have been providing the same test data for the last couple of releases so no need to spend time uploading test data with each release for the forseeable future rather download from v2.0 --- lib/tests/download_data.py | 4 ++++ lib/tests/pipeline_test.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/tests/download_data.py b/lib/tests/download_data.py index b1623b6..957a5c2 100755 --- a/lib/tests/download_data.py +++ b/lib/tests/download_data.py @@ -54,6 +54,10 @@ def main(): chdir(pjoin(LIBDIR, 'tests')) if not isfile(test_data): + # we have been providing the same test data for the last couple of releases + # so no need to spend time uploading test data with each release for the forseeable future + # rather download from v2.0 + __version__=2.0 check_call(['wget', f'https://github.com/pnlbwh/Harmonization-Python/releases/download/v{__version__}/{test_data}']) check_call(' '.join(['tar', '-xzvf', f'{test_data}']), shell=True) diff --git a/lib/tests/pipeline_test.sh b/lib/tests/pipeline_test.sh index 8449182..d165783 100755 --- a/lib/tests/pipeline_test.sh +++ b/lib/tests/pipeline_test.sh @@ -39,6 +39,10 @@ __version__=`echo $v | xargs` test_data=connectom_prisma # change this value if test data name is changed if [ ! -f ${test_data}.zip ] then + # we have been providing the same test data for the last couple of releases + # so no need to spend time uploading test data with each release for the forseeable future + # rather download from v2.0 + __version__=2.0 wget https://github.com/pnlbwh/dMRIharmonization/releases/download/v${__version__}/${test_data}.zip fi