Clean up package restoration in CoreCLR test build (dotnet/coreclr#27633)
authorTomáš Rylek <trylek@microsoft.com>
Sat, 2 Nov 2019 16:59:25 +0000 (09:59 -0700)
committerGitHub <noreply@github.com>
Sat, 2 Nov 2019 16:59:25 +0000 (09:59 -0700)
commit0f7d67f89eee8903f7ee2c34b5cfa4866eff3e59
treea164377cf3145212afd19b12d6aec1797d580747
parent29ada3a9b8b242adc873253b4e76e5d45d039016
Clean up package restoration in CoreCLR test build (dotnet/coreclr#27633)

During investigation of package version issues in consolidation
scouting I noticed that package restoration logic in the test build
script is quite silly: we first restore all packages but ignore the
exit code, subsequently we restore all packages again before
building each test chunk and fail if we're unable to.

I have simplified this so that we properly exit when we fail to
restore packages upfront; after that, we no longer need to restore
packages before building each test chunk.

Thanks

Tomas

Commit migrated from https://github.com/dotnet/coreclr/commit/933e8f07e4346baef486d3aebc2339a29dd8a8ec
src/coreclr/build-test.cmd
src/coreclr/build-test.sh