Skip to content

Commit 4e809ab

Browse files
committed
minor
1 parent 761fa14 commit 4e809ab

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

it/exec-cmd.ps1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,26 @@ if (!([string]::IsNullOrEmpty($mockSeverITFolder))) {
6060

6161
Push-Location $testPath
6262
if ($language -eq "csharp") {
63-
dotnet build
63+
Invoke-Call -ScriptBlock {
64+
dotnet build
65+
} -ErrorAction Stop
6466
}
6567
elseif ($language -eq "java") {
6668
if (!([string]::IsNullOrEmpty($mockSeverITFolder))) {
6769
$itTestPath = Join-Path -Path $testPath -ChildPath $mockSeverITFolder
6870
Push-Location $itTestPath
69-
# START: Specific Java provisioning and execution
71+
7072
$itTestPathSources = Join-Path -Path $testPath -ChildPath "src" -AdditionalChildPath "*"
7173
$itTestPathDest = Join-Path -Path $itTestPath -ChildPath "src" -AdditionalChildPath "main", "java"
7274
if (Test-Path $itTestPathDest) {
7375
Remove-Item $itTestPathDest -Force -Recurse
7476
}
7577
Copy-Item -Path $itTestPathSources -Destination $itTestPathDest -Recurse
78+
7679
Invoke-Call -ScriptBlock {
7780
mvn clean test --batch-mode
7881
} -ErrorAction Stop
79-
# END
82+
8083
Pop-Location
8184
} else {
8285
Invoke-Call -ScriptBlock {

0 commit comments

Comments
 (0)