Replace the "run_subtests; touch /testok" tail with a single wrapper invocation. Report the test itself as skipped if every subtest is skipped. Signed-off-by: Paul Meyer <katexochen0@gmail.com>
22 lines
451 B
Bash
Executable File
22 lines
451 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
FSTYPE="$(stat --file-system --format "%T" /)"
|
|
|
|
if [[ "$FSTYPE" == "fuseblk" ]]; then
|
|
echo "Root filesystem is virtiofs, skipping"
|
|
exit 77
|
|
fi
|
|
|
|
if ! command -v systemd-nspawn >/dev/null; then
|
|
echo "no systemd-nspawn" >/skipped
|
|
exit 77
|
|
fi
|
|
|
|
# shellcheck source=test/units/test-control.sh
|
|
. "$(dirname "$0")"/test-control.sh
|
|
|
|
run_subtests_and_exit
|