Skip to content

Commit

Permalink
fix test number calculation (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
clr2of8 authored Aug 9, 2023
1 parent 8205472 commit 88d84e4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Public/Invoke-AtomicTest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ function Invoke-AtomicTest {
Write-Debug -Message "Gathering tests for Technique $technique"

$testCount = 0
$order = 1
foreach ($test in $technique.atomic_tests) {

Write-Verbose -Message 'Determining tests for target platform'
Expand Down Expand Up @@ -485,8 +484,7 @@ function Invoke-AtomicTest {
$res = Invoke-ExecuteCommand $final_command $test.executor.name $executionPlatform $TimeoutSeconds $session -Interactive:$Interactive
$stopTime = Get-Date
if ($isLoggingModuleSet) {
&"$LoggingModule\Write-ExecutionLog" $startTime $stopTime $AT $order $test.name $test.auto_generated_guid $test.executor.name $test.description $final_command $ExecutionLogPath $executionHostname $executionUser $res (-Not($IsLinux -or $IsMacOS))
$order++
&"$LoggingModule\Write-ExecutionLog" $startTime $stopTime $AT $testCount $test.name $test.auto_generated_guid $test.executor.name $test.description $final_command $ExecutionLogPath $executionHostname $executionUser $res (-Not($IsLinux -or $IsMacOS))
}
Write-KeyValue "Done executing test: " $testId
}
Expand Down Expand Up @@ -523,4 +521,4 @@ function Invoke-AtomicTest {

} # End of PROCESS block
END { } # Intentionally left blank and can be removed
}
}

0 comments on commit 88d84e4

Please sign in to comment.