Skip to content

Commit

Permalink
test/e2e: SkipOnOSVersion() add reason field
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed Dec 12, 2024
1 parent e74df8c commit e6d8603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -923,10 +923,10 @@ func SkipIfNotSystemd(manager, reason string) {
}
}

func SkipOnOSVersion(os, version string) {
func SkipOnOSVersion(os, version string, reason string) {
info := GetHostDistributionInfo()
if info.Distribution == os && info.Version == version {
Skip(fmt.Sprintf("Test doesn't work on %s %s", os, version))
Skip(fmt.Sprintf("[%s %s]: %s", os, version, reason))
}
}

Expand Down

0 comments on commit e6d8603

Please sign in to comment.