File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,31 @@ foreach ($package in $packagesToTest) {
56
56
57
57
Write-Host " `n`n Testing package: '$ ( $package.Name ) '`n "
58
58
59
- Invoke-LoggedCommand " cargo build --keep-going" - GroupOutput
59
+ # Temporary fix to exit immediately on failure. LogError should Write-Error
60
+ # instead
61
+ $command = " cargo build --keep-going"
62
+ Invoke-LoggedCommand $command - GroupOutput
63
+ if ($LastExitCode ) {
64
+ Write-Error " Failed to execute $command "
65
+ }
60
66
Write-Host " `n`n "
61
67
62
- Invoke-LoggedCommand " cargo test --doc --no-fail-fast" - GroupOutput
68
+ # Temporary fix to exit immediately on failure. LogError should Write-Error
69
+ # instead
70
+ $command = " cargo test --doc --no-fail-fast"
71
+ Invoke-LoggedCommand $command - GroupOutput
72
+ if ($LastExitCode ) {
73
+ Write-Error " Failed to execute $command "
74
+ }
63
75
Write-Host " `n`n "
64
76
65
- Invoke-LoggedCommand " cargo test --all-targets --no-fail-fast" - GroupOutput
77
+ # Temporary fix to exit immediately on failure. LogError should Write-Error
78
+ # instead
79
+ $command = " cargo test --all-targets --no-fail-fast"
80
+ Invoke-LoggedCommand $command - GroupOutput
81
+ if ($LastExitCode ) {
82
+ Write-Error " Failed to execute $command "
83
+ }
66
84
Write-Host " `n`n "
67
85
68
86
$cleanupScript = Join-Path $packageDirectory " Test-Cleanup.ps1"
You can’t perform that action at this time.
0 commit comments