Skip to content

Commit

Permalink
mantle/kola: fix systemd generator failure detection
Browse files Browse the repository at this point in the history
Apparently it can start with `systemd` or `sd-execu`. I think the
difference may be whether the failure happens in the initramfs or
the real root. Let's detect both.

Here is an example:

```
Feb 23 21:50:38.240188 /usr/lib/systemd/system-generators/coreos-platform-chrony: line 44: /etc/sysconfig/network: Read-only file system
Feb 23 21:50:38.240195 (sd-execu[1020]: /usr/lib/systemd/system-generators/coreos-platform-chrony failed with exit status 1.
```
  • Loading branch information
dustymabe committed Feb 23, 2023
1 parent f502808 commit 8426764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mantle/kola/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ var (
{
// https://github.com/coreos/fedora-coreos-config/pull/1797
desc: "systemd generator failure",
match: regexp.MustCompile(`systemd\[[0-9]+\]: (.*) failed with exit status`),
match: regexp.MustCompile(`[systemd|sd-execu]\[[0-9]+\]: (.*) failed with exit status`),
},
}
)
Expand Down

0 comments on commit 8426764

Please sign in to comment.