@@ -50,13 +50,13 @@ jobs:
5050 CF_ACCESS_CLIENT_ID : ${{ steps.op-load-secrets.outputs.CF_ACCESS_CLIENT_ID }}
5151 CF_ACCESS_CLIENT_SECRET : ${{ steps.op-load-secrets.outputs.CF_ACCESS_CLIENT_SECRET }}
5252 run : |
53- # Test debug mode - expect exit code 100
53+ # Test debug mode - expect exit code 0
5454 set +e # Don't exit on error
5555 bash ./mlc-r2-downloader.sh -xs https://auth-test.mlcommons-storage.org/metadata/dataset.uri
5656 exit_code=$?
5757
58- if [ $exit_code -eq 100 ]; then
59- echo "[PASS] Debug mode test PASSED (expected exit code 100 )"
58+ if [ $exit_code -eq 0 ]; then
59+ echo "[PASS] Debug mode test PASSED (expected exit code 0 )"
6060 else
6161 echo "[FAIL] Debug mode test FAILED (unexpected exit code: $exit_code)"
6262 exit 1
@@ -153,8 +153,8 @@ jobs:
153153 $output | ForEach-Object { Write-Host $_ }
154154 Write-Host "Script exit code: $exitCode"
155155
156- if ($exitCode -eq 100 ) {
157- Write-Host "[PASS] WSL Debug mode test PASSED (expected exit code 100 )"
156+ if ($exitCode -eq 0 ) {
157+ Write-Host "[PASS] WSL Debug mode test PASSED (expected exit code 0 )"
158158 exit 0
159159 } else {
160160 Write-Host "[FAIL] WSL Debug mode test FAILED (unexpected exit code: $exitCode)"
@@ -269,7 +269,7 @@ jobs:
269269
270270 $repoPath = (Get-Location).Path -replace '\\', '/' -replace '^([A-Z]):', '/cygdrive/$1'
271271 $repoPath = $repoPath.ToLower()
272- C:\cygwin64\bin\bash.exe --login -c "export CF_ACCESS_CLIENT_ID='$clientId'; export CF_ACCESS_CLIENT_SECRET='$clientSecret'; bash '$repoPath/mlc-r2-downloader.sh' -xs https://auth-test.mlcommons-storage.org/metadata/dataset.uri; exit_code=`$?; if [ `"`$exit_code`" -ne 100 ]; then echo '[FAIL] Wrong exit code: `$exit_code'; exit 1; else echo '[PASS] Correct exit code 100 received.'; fi"
272+ C:\cygwin64\bin\bash.exe --login -c "export CF_ACCESS_CLIENT_ID='$clientId'; export CF_ACCESS_CLIENT_SECRET='$clientSecret'; bash '$repoPath/mlc-r2-downloader.sh' -xs https://auth-test.mlcommons-storage.org/metadata/dataset.uri; exit_code=`$?; if [ `"`$exit_code`" -ne 0 ]; then echo '[FAIL] Wrong exit code: `$exit_code'; exit 1; else echo '[PASS] Correct exit code 0 received.'; fi"
273273
274274 - name : Test script in Cygwin with service account and testing mode
275275 env :
0 commit comments