|
2 | 2 | .AUTHOR
|
3 | 3 | sp00n
|
4 | 4 | .VERSION
|
5 |
| - 0.10.0.0alpha4 |
| 5 | + 0.10.0.0alpha5 |
6 | 6 | .DESCRIPTION
|
7 | 7 | Sets the affinity of the selected stress test program process to only one
|
8 | 8 | core and cycles through all the cores which allows to test the stability of
|
|
23 | 23 |
|
24 | 24 |
|
25 | 25 | # Our current version
|
26 |
| -$version = '0.10.0.0alpha4' |
| 26 | +$version = '0.10.0.0alpha5' |
27 | 27 |
|
28 | 28 |
|
29 | 29 | # This defines the strict mode
|
@@ -4644,7 +4644,7 @@ function Initialize-AutomaticTestMode {
|
4644 | 4644 |
|
4645 | 4645 | # This flag indicates that the .automode file existed and the startup scheduled task was run
|
4646 | 4646 | # So we had a crash while the script was running
|
4647 |
| - if ($CoreFromAutoMode -and $CoreFromAutoMode -gt -1) { |
| 4647 | + if (-not [String]::IsNullOrWhiteSpace($CoreFromAutoMode) -and [Int]$CoreFromAutoMode -gt -1) { |
4648 | 4648 | Write-Debug('The CoreFromAutoMode variable was passed from the command line: ' + $CoreFromAutoMode)
|
4649 | 4649 |
|
4650 | 4650 | # The setting for the automatic resume must also be activated
|
@@ -9238,7 +9238,7 @@ function Test-AutomaticTestModeIncrease {
|
9238 | 9238 | }
|
9239 | 9239 | }
|
9240 | 9240 |
|
9241 |
| - Write-ColorText('Increasing the ' + $autoModeDescription + ' value' + $forCore + ' from ' + $oldValueStr + ' to ' + $newValueStr) Yellow |
| 9241 | + Write-ColorText('Modifying the ' + $autoModeDescription + ' value' + $forCore + ' from ' + $oldValueStr + ' to ' + $newValueStr) Yellow |
9242 | 9242 |
|
9243 | 9243 | if ($newValue -eq $maxValue) {
|
9244 | 9244 | Write-ColorText('This is the maximum set ' + $autoModeDescription + ' value, there will be no further increases') Yellow
|
@@ -11747,7 +11747,7 @@ try {
|
11747 | 11747 |
|
11748 | 11748 |
|
11749 | 11749 | # Add the previously tested core from before the reboot if we're in Automatic Test Mode with resume
|
11750 |
| - if ($useAutomaticTestModeWithResume -and $CoreFromAutoMode -gt 0) { |
| 11750 | + if ($useAutomaticTestModeWithResume -and $CoreFromAutoMode -gt -1) { |
11751 | 11751 | Write-Text('')
|
11752 | 11752 | Write-ColorText('Apparently the computer crashed in the last run while testing core ' + $CoreFromAutoMode) Red
|
11753 | 11753 | Write-ColorText('Trying to resume the test process') Red
|
@@ -11842,7 +11842,7 @@ try {
|
11842 | 11842 | $coreTestOrderArray = [System.Collections.ArrayList]::new()
|
11843 | 11843 |
|
11844 | 11844 | # If we had added a core from CoreFromAutoMode, we will need to push it to the front here again
|
11845 |
| - if ($useAutomaticTestModeWithResume -and $CoreFromAutoMode -gt 0) { |
| 11845 | + if ($useAutomaticTestModeWithResume -and $CoreFromAutoMode -gt -1) { |
11846 | 11846 | [Void] $coreTestOrderArray.Add($CoreFromAutoMode)
|
11847 | 11847 | }
|
11848 | 11848 |
|
@@ -11875,7 +11875,7 @@ try {
|
11875 | 11875 | [System.Collections.ArrayList] $coreTestOrderArray = @(@($coreTestOrderArray) | Sort-Object { Get-Random })
|
11876 | 11876 |
|
11877 | 11877 | # If we had added a core from CoreFromAutoMode, we will need to push it to the front here again
|
11878 |
| - if ($useAutomaticTestModeWithResume -and $CoreFromAutoMode -gt 0) { |
| 11878 | + if ($useAutomaticTestModeWithResume -and $CoreFromAutoMode -gt -1) { |
11879 | 11879 | [Void] $coreTestOrderArray.Insert(0, $CoreFromAutoMode)
|
11880 | 11880 | }
|
11881 | 11881 | }
|
|
0 commit comments