Skip to content

Commit ae0d287

Browse files
kola: distinguish between scos and rhocs distros
Despite SCOS and RHCOS being largely similar, certain features (such as s390x Secure Execution and LUKS-CEX) are only supported on RHCOS. It does not make sense to run RHCOS-only tests on SCOS.
1 parent eb04ff5 commit ae0d287

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

mantle/cmd/kola/options.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,6 @@ func syncOptionsImpl(useCosa bool) error {
370370

371371
if kola.Options.Distribution == "" {
372372
kola.Options.Distribution = kolaDistros[0]
373-
} else if kola.Options.Distribution == "scos" {
374-
// Consider SCOS the same as RHCOS for now
375-
kola.Options.Distribution = "rhcos"
376373
} else if err := validateOption("distro", kola.Options.Distribution, kolaDistros); err != nil {
377374
return err
378375
}

mantle/util/distros.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ import (
2323
// TargetDistro returns the distribution of a cosa build
2424
func TargetDistro(build *builds.Build) (string, error) {
2525
switch build.Name {
26-
case "rhcos":
27-
return "rhcos", nil
28-
case "scos":
29-
return "rhcos", nil
26+
case "rhcos", "scos":
27+
return build.Name, nil
3028
case "fedora-coreos":
3129
return "fcos", nil
3230
default:

0 commit comments

Comments
 (0)