run_tests test data download -> fail if curl fails, follow http redirects

This commit is contained in:
Ryan Fleury
2026-06-22 14:42:50 -07:00
parent fef78609d8
commit a425936f56
+3 -3
View File
@@ -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