diff options
author | verhoek <30193551+verhoek@users.noreply.github.com> | 2019-12-08 00:59:06 +0300 |
---|---|---|
committer | verhoek <30193551+verhoek@users.noreply.github.com> | 2019-12-08 00:59:06 +0300 |
commit | bb9bba172298e2e233123ce95bff7e4252d46045 (patch) | |
tree | 755082da47597b19483688a9ee16e818dec0aacb /pipeline/stage_unittests | |
parent | 8e050bfe1139aa2f9c4fbc6209c3434833dd3f35 (diff) |
Remove test data download functionality.
This is built in unit tests and doesn't need outside steering anymore.
Diffstat (limited to 'pipeline/stage_unittests')
-rwxr-xr-x | pipeline/stage_unittests/job.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/pipeline/stage_unittests/job.sh b/pipeline/stage_unittests/job.sh index 1e972c6a4..fece2e7b0 100755 --- a/pipeline/stage_unittests/job.sh +++ b/pipeline/stage_unittests/job.sh @@ -2,15 +2,6 @@ . /pipeline/docker-run/markers.sh . /pipeline/shared/duplicati.sh -function get_and_extract_test_zip () { - travis_mark_begin "DOWNLOADING TEST DATA $CAT" - # test if zip file exists and contains no errors, otherwise redownload - unzip -t ~/download/"${CAT}"/"${testdata}" &> /dev/null || \ - wget --progress=dot:giga "https://s3.amazonaws.com/duplicati-test-file-hosting/${testdata}" -O ~/download/"${CAT}"/"${testdata}" - unzip -q ~/download/"${CAT}"/"${testdata}" -d ${UNITTEST_BASEFOLDER} - travis_mark_end "DOWNLOADING TEST DATA $CAT" -} - function start_test () { travis_mark_begin "SETUP NUGET" nuget install NUnit.Runners -Version 3.10.0 -OutputDirectory testrunner @@ -18,14 +9,6 @@ function start_test () { for CAT in $(echo $testcategories | sed "s/,/ /g") do - mkdir -p ~/download/"${CAT}" - export UNITTEST_BASEFOLDER=~/duplicati_testdata/"${CAT}" - rm -rf ${UNITTEST_BASEFOLDER} && mkdir -p ${UNITTEST_BASEFOLDER} - - if [[ ${testdata} != "" ]]; then - get_and_extract_test_zip - fi - travis_mark_begin "UNIT TESTING CATEGORY $CAT" mono "${DUPLICATI_ROOT}"/testrunner/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe \ "${DUPLICATI_ROOT}"/Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==$CAT --workers=1 |