Skip to content

Commit ba29c71

Browse files
kola: refactor iso.*-install* tests
1 parent 71b296b commit ba29c71

File tree

4 files changed

+438
-350
lines changed

4 files changed

+438
-350
lines changed

mantle/kola/tests/iso/common.go

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import (
2222

2323
const (
2424
installTimeoutMins = 12
25-
// https://github.com/coreos/fedora-coreos-config/pull/2544
26-
liveISOFromRAMKarg = "coreos.liveiso.fromram"
2725
)
2826

2927
type IsoTestOpts struct {
@@ -427,3 +425,31 @@ ExecStart=/usr/bin/nmcli c show br-ex
427425
RequiredBy=coreos-installer.target
428426
# for target system
429427
RequiredBy=multi-user.target`, nmConnectionId, nmConnectionFile)
428+
429+
var bootStartedSignal = "boot-started-OK"
430+
var bootStartedUnit = fmt.Sprintf(`[Unit]
431+
Description=TestISO Boot Started
432+
Requires=dev-virtio\\x2dports-bootstarted.device
433+
OnFailure=emergency.target
434+
OnFailureJobMode=isolate
435+
[Service]
436+
Type=oneshot
437+
RemainAfterExit=yes
438+
ExecStart=/bin/sh -c '/usr/bin/echo %s >/dev/virtio-ports/bootstarted'
439+
[Install]
440+
RequiredBy=coreos-installer.target`, bootStartedSignal)
441+
442+
var coreosInstallerMultipathUnit = `[Unit]
443+
Description=TestISO Enable Multipath
444+
Before=multipathd.service
445+
DefaultDependencies=no
446+
[Service]
447+
Type=oneshot
448+
RemainAfterExit=yes
449+
ExecStart=/usr/sbin/mpathconf --enable
450+
[Install]
451+
WantedBy=coreos-installer.target`
452+
453+
var waitForMpathTargetConf = `[Unit]
454+
Requires=dev-mapper-mpatha.device
455+
After=dev-mapper-mpatha.device`

0 commit comments

Comments
 (0)