mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
Merge pull request #18567 from Werkov/mkosi-opensuse-v9+
CI for openSUSE Tumbleweed
This commit is contained in:
commit
57777c9e61
9
.github/workflows/mkosi.yml
vendored
9
.github/workflows/mkosi.yml
vendored
@ -21,10 +21,11 @@ jobs:
|
||||
- debian
|
||||
- ubuntu
|
||||
- fedora
|
||||
- opensuse
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: systemd/mkosi@v9
|
||||
- uses: systemd/mkosi@v10
|
||||
|
||||
- name: Install
|
||||
run: sudo apt-get update && sudo apt-get install --no-install-recommends python3-pexpect python3-jinja2
|
||||
@ -46,13 +47,13 @@ jobs:
|
||||
systemd-nspawn --version
|
||||
|
||||
- name: Build ${{ matrix.distro }}
|
||||
run: sudo python3 -m mkosi --password= --qemu-headless build
|
||||
run: sudo python3 -m mkosi --password= --network-veth=no --qemu-headless build
|
||||
|
||||
- name: Show ${{ matrix.distro }} image summary
|
||||
run: sudo python3 -m mkosi --password= --qemu-headless summary
|
||||
|
||||
- name: Boot ${{ matrix.distro }} systemd-nspawn
|
||||
run: sudo ./.github/workflows/test_mkosi_boot.py python3 -m mkosi --password= --qemu-headless boot
|
||||
run: sudo ./.github/workflows/test_mkosi_boot.py python3 -m mkosi --password= --network-veth=no --qemu-headless boot
|
||||
|
||||
- name: Boot ${{ matrix.distro }} QEMU
|
||||
run: sudo ./.github/workflows/test_mkosi_boot.py python3 -m mkosi --password= --qemu-headless qemu
|
||||
run: sudo ./.github/workflows/test_mkosi_boot.py python3 -m mkosi --password= --network-veth=no --qemu-headless qemu
|
||||
|
4
.github/workflows/test_mkosi_boot.py
vendored
4
.github/workflows/test_mkosi_boot.py
vendored
@ -2,13 +2,15 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
import pexpect
|
||||
import re
|
||||
import sys
|
||||
|
||||
|
||||
def run() -> None:
|
||||
p = pexpect.spawnu(" ".join(sys.argv[1:]), logfile=sys.stdout, timeout=300)
|
||||
|
||||
p.expect("#")
|
||||
# distro-independent root prompt
|
||||
p.expect(re.compile("~[^#]{0,3}#"))
|
||||
p.sendline("systemctl poweroff")
|
||||
|
||||
p.expect(pexpect.EOF)
|
||||
|
@ -36,7 +36,7 @@ BuildPackages=
|
||||
pcre-devel
|
||||
python3
|
||||
python3-lxml
|
||||
python3-jinja2
|
||||
python3-Jinja2
|
||||
qrencode-devel
|
||||
system-user-nobody
|
||||
systemd-sysvinit
|
||||
@ -60,6 +60,7 @@ Packages=
|
||||
libapparmor1
|
||||
libcrypt1
|
||||
libcryptsetup12
|
||||
libgcrypt20
|
||||
libkmod2
|
||||
liblz4-1
|
||||
libmount1
|
||||
|
Loading…
Reference in New Issue
Block a user