mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
TEST-74-AUX-UTILS covers many subtests, as it's a catch-all job, and a few
need a VM to run. The job is thus marked VM-only. But that means in settings
where we can't run VM tests (no KVM available), the entire thing is skipped,
losing tons of coverage that doesn't need skipping.
Move the VM-only subtests to TEST-87-AUX-UTILS-VM that is configured to only
run in VMs under both runners. This way we keep the existing tests as-is, and
we can add new VM-only tests without worrying. This is how the rest of the
tests are organized.
Follow-up for f4faac2073
12 lines
296 B
Bash
Executable File
12 lines
296 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
(! systemd-detect-virt -cq)
|
|
|
|
SYSTEMD_IN_CHROOT=1 systemd-detect-virt --chroot
|
|
(! SYSTEMD_IN_CHROOT=0 systemd-detect-virt --chroot)
|
|
|
|
unshare --mount-proc --fork --user --pid systemd-detect-virt --container
|