0e69710f41
Unit tests on Windows are supposed to pass for any PR to pass CI. However, the return code for the unit test command was not being checked, which meant this check was always passing (effectively disabled). This PR * Properly checks the result of the unit tests and fails if the unit tests fail * Fixes (or disables on Windows) a number of tests which have "drifted" out of support on Windows since this check was effectively disabled
14 lines
477 B
PowerShell
14 lines
477 B
PowerShell
# (c) 2022 Lawrence Livermore National Laboratory
|
|
|
|
git config --global user.email "spack@example.com"
|
|
git config --global user.name "Test User"
|
|
git config --global core.longpaths true
|
|
|
|
# See https://github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85 (CVE-2022-39253)
|
|
# This is needed to let some fixture in our unit-test suite run
|
|
git config --global protocol.file.allow always
|
|
|
|
if ($(git branch --show-current) -ne "develop")
|
|
{
|
|
git branch develop origin/develop
|
|
}
|