diff options
author | Sébastien Ros <sebastienros@gmail.com> | 2022-04-01 00:00:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 00:00:06 +0300 |
commit | bee2add906e48ee8e78b7da11d3509ebd8b252ea (patch) | |
tree | 9fcfdc9a730a7f9f742be422d287cf6d540470f2 | |
parent | 3195e0df8ef8560805bb3de65958f58c527b8bfd (diff) |
Don't execute test if restore failed (#40979)
Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
-rw-r--r-- | eng/helix/content/runtests.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/eng/helix/content/runtests.sh b/eng/helix/content/runtests.sh index 079a2e5318..af91c928ab 100644 --- a/eng/helix/content/runtests.sh +++ b/eng/helix/content/runtests.sh @@ -76,8 +76,17 @@ sync exit_code=0 echo "Restore: dotnet restore RunTests/RunTests.csproj --ignore-failed-sources" + +# --verbosity diagnostic can be removed when random failures are identified dotnet restore RunTests/RunTests.csproj --ignore-failed-sources --verbosity diagnostic +exit_code=$? + +if [[ $exit_code != 0 ]]; then + echo "Restore runtests failed: exit_code=$exit_code" + exit $exit_code +fi + echo "Running tests: dotnet run --no-restore --project RunTests/RunTests.csproj -- --target $1 --runtime $2 --queue $helixQueue --arch $4 --quarantined $5 --ef $6 --helixTimeout $7" dotnet run --no-restore --project RunTests/RunTests.csproj -- --target $1 --runtime $2 --queue $helixQueue --arch $4 --quarantined $5 --ef $6 --helixTimeout $7 exit_code=$? |