Compare commits

...

4 Commits

Author SHA1 Message Date
aparnajyothi-y
7a0de94d02 Update python-tests.ps1 2024-10-08 18:00:40 +05:30
aparnajyothi-y
852aa61b41 Update python-tests.ps1 2024-10-08 17:41:36 +05:30
aparnajyothi-y
8038923f91 Update python-tests.ps1 2024-10-08 17:28:06 +05:30
aparnajyothi-y
989f86547f Update python-tests.ps1 2024-10-08 17:05:37 +05:30

View File

@@ -18,16 +18,22 @@ BeforeAll {
$pattern = "$searchStringStart(.*?)$searchStringEnd"
$buildContent = Get-Content -Path $buildOutputLocation
$splitBuiltOutput = $buildContent -split "\n";
$splitBuiltOutput = $buildContent -split "\n"
### Search for missing modules that are displayed between the search strings
$regexMatch = [regex]::match($SplitBuiltOutput, $Pattern)
if ($regexMatch.Success)
{
$regexMatch = [regex]::match($splitBuiltOutput, $pattern)
if ($regexMatch.Success) {
$module = $regexMatch.Groups[1].Value.Trim()
Write-Host "Failed missing modules:"
Write-Host $module
if ( ($module -eq "_tkinter") -and ( [semver]"$($Version.Major).$($Version.Minor)" -ge [semver]"3.10" -and $Version.PreReleaseLabel ) ) {
try {
$semver = [semver]"$($Version.Major).$($Version.Minor)"
} catch {
Write-Error "Invalid Semantic Version format: $Version"
return 1
}
if (($module -eq "_tkinter") -and ($semver -ge [semver]"3.8")) {
Write-Host "$module $Version ignored"
} else {
return 1
@@ -35,7 +41,7 @@ BeforeAll {
}
return 0
}
}
}
Describe "Tests" {