Skip to content

Commit e30786e

Browse files
committed
Fix failing Linux tests
1 parent 86b8df2 commit e30786e

5 files changed

Lines changed: 8 additions & 10 deletions

File tree

linux/svtminion.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,6 @@ _set_log_level() {
403403
}
404404

405405

406-
407406
#
408407
# _salt_onedir_dir_is_ga
409408
#
@@ -423,7 +422,7 @@ _salt_onedir_dir_is_ga() {
423422
# _get_desired_salt_version_fn
424423
#
425424
# Get the appropriate desirted salt version based on salt_url_version,
426-
# latest or specified input Salt version, 3008, 3006.10, 3008.0rc1
425+
# latest or specified input Salt version, 3008, 3006.9, 3008.0rc1
427426
# and set salt_specific_version accordinly
428427
#
429428
# Note: 'latest' and four-digit major (e.g. 3006) choose the newest GA

tests/testarea/3006.10/salt-3006.10-onedir-windows-amd64.zip

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/testarea/3006.10rc1/salt-3006.10rc1-onedir-windows-amd64.zip

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
salt-3006.9rc1-onedir-windows-amd64.zip

tests/windows/functional/test_get_salt_package_info.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function test_Get-SaltPackageInfo_local_major_version{
7575
$base_url = "$($pwd.Path)\tests\testarea"
7676
$MinionVersion = "3006"
7777
$test = Get-SaltPackageInfo -MinionVersion $MinionVersion
78-
if ( $test.version -ne "3006.10" ) { $failed = 1 }
78+
if ( $test.version -ne "3006.9" ) { $failed = 1 }
7979
$exp_name = "salt-$($test.version)-onedir-windows-amd64.zip"
8080
$exp_url = "$base_url/$($test.version)/$exp_name"
8181
$failed = 0
@@ -86,8 +86,8 @@ function test_Get-SaltPackageInfo_local_major_version{
8686
return $failed
8787
}
8888

89-
# testarea includes 3006.10 (GA) and 3006.10rc1 (prerelease). Global "latest"
90-
# stays 3007.1; major "3006" picks GA 3006.10; exact "3006.10rc1" picks the RC dir.
89+
# testarea has GA 3006.9 (highest 3006.x); prerelease 3006.9rc1 is separate. Global
90+
# "latest" stays 3007.1; major "3006" picks GA 3006.9; exact "3006.9rc1" picks the RC dir.
9191
function test_Get-SaltPackageInfo_local_latest_unchanged_when_rc_not_highest_ga {
9292
$base_url = "$($pwd.Path)\tests\testarea"
9393
$MinionVersion = "latest"
@@ -107,7 +107,7 @@ function test_Get-SaltPackageInfo_local_major_3006_resolves_to_ga_not_rc {
107107
$MinionVersion = "3006"
108108
$test = Get-SaltPackageInfo -MinionVersion $MinionVersion
109109
$failed = 0
110-
if ( $test.version -ne "3006.10" ) { $failed = 1 }
110+
if ( $test.version -ne "3006.9" ) { $failed = 1 }
111111
$exp_name = "salt-$($test.version)-onedir-windows-amd64.zip"
112112
$exp_url = "$base_url/$($test.version)/$exp_name"
113113
if ( $test.file_name -ne $exp_name ) { $failed = 1 }
@@ -118,10 +118,10 @@ function test_Get-SaltPackageInfo_local_major_3006_resolves_to_ga_not_rc {
118118

119119
function test_Get-SaltPackageInfo_local_exact_rc_version {
120120
$base_url = "$($pwd.Path)\tests\testarea"
121-
$MinionVersion = "3006.10rc1"
121+
$MinionVersion = "3006.9rc1"
122122
$test = Get-SaltPackageInfo -MinionVersion $MinionVersion
123123
$failed = 0
124-
if ( $test.version -ne "3006.10rc1" ) { $failed = 1 }
124+
if ( $test.version -ne "3006.9rc1" ) { $failed = 1 }
125125
$exp_name = "salt-$($test.version)-onedir-windows-amd64.zip"
126126
$exp_url = "$base_url/$($test.version)/$exp_name"
127127
if ( $test.file_name -ne $exp_name ) { $failed = 1 }

0 commit comments

Comments
 (0)