mirror of
https://github.com/systemd/systemd.git
synced 2025-03-13 00:58:27 +03: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 f4faac20730cbb339ae05ed6e20da687a2868e76
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
|