Skip to content

Commit 7dd937e

Browse files
committed
mantle: fix offline detection in testiso tests
The offline detection in our testiso tests is not working properly meaning we are never running offline tests today. Let's fix that here by parsing it properly. Fixes f98481f.
1 parent 1461c56 commit 7dd937e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mantle/cmd/kola/testiso.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,10 @@ func runTestIso(cmd *cobra.Command, args []string) error {
492492
} else if kola.HasString("uefi", components) {
493493
enableUefi = true
494494
}
495-
if kola.HasString("offline", components) {
495+
// For offline it is a part of the first component. i.e. for
496+
// iso-offline-install.bios we need to search for 'offline' in
497+
// iso-offline-install, which is currently in components[0].
498+
if kola.HasString("offline", strings.Split(components[0], "-")) {
496499
isOffline = true
497500
}
498501

0 commit comments

Comments
 (0)