mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-09 15:28:08 +00:00
run_tests test data download -> fail if curl fails, follow http redirects
This commit is contained in:
+3
-3
@@ -17,7 +17,7 @@ popd
|
|||||||
:: Check if we need new test data version
|
:: Check if we need new test data version
|
||||||
pushd local
|
pushd local
|
||||||
set need_test_data=0
|
set need_test_data=0
|
||||||
curl -s -o test_data_version_latest.txt https://data.raddbg.com/public/raddbg_test_data_version.txt
|
curl -sfL -o test_data_version_latest.txt https://data.raddbg.com/public/raddbg_test_data_version.txt || exit /b 1
|
||||||
if exist "test_data_version_current.txt" (
|
if exist "test_data_version_current.txt" (
|
||||||
fc /b "test_data_version_latest.txt" "test_data_version_current.txt" > nul
|
fc /b "test_data_version_latest.txt" "test_data_version_current.txt" > nul
|
||||||
) else (
|
) else (
|
||||||
@@ -35,8 +35,8 @@ if "%need_test_data%"=="1" (
|
|||||||
echo Downloading test data...
|
echo Downloading test data...
|
||||||
pushd local
|
pushd local
|
||||||
pushd test_data
|
pushd test_data
|
||||||
curl -s -o test_data.zip https://data.raddbg.com/public/raddbg_test_data.zip
|
curl -sfL -o test_data.zip https://data.raddbg.com/public/raddbg_test_data.zip || exit /b 1
|
||||||
tar -xf test_data.zip
|
tar -xf test_data.zip || exit /b 1
|
||||||
del test_data.zip
|
del test_data.zip
|
||||||
popd
|
popd
|
||||||
copy /y test_data_version_latest.txt test_data_version_current.txt
|
copy /y test_data_version_latest.txt test_data_version_current.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user