diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-16 18:47:33 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-16 18:47:33 +0200 |
commit | 7908e1d459f5f2893d6aaf1d62009da7856f9410 (patch) | |
tree | d121510ebca8145d7e17ec4efe0ef94144a08b48 /test | |
parent | network: make IPMasquerade= imply global IP forwarding settings again (diff) | |
download | systemd-7908e1d459f5f2893d6aaf1d62009da7856f9410.tar.xz systemd-7908e1d459f5f2893d6aaf1d62009da7856f9410.zip |
test: allow to skip matrix_run_one() if $TEST_MATCH_TESTCASE is set
Diffstat (limited to 'test')
-rwxr-xr-x | test/units/TEST-13-NSPAWN.nspawn.sh | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/test/units/TEST-13-NSPAWN.nspawn.sh b/test/units/TEST-13-NSPAWN.nspawn.sh index 0c74d2e16e..80ba5c97a3 100755 --- a/test/units/TEST-13-NSPAWN.nspawn.sh +++ b/test/units/TEST-13-NSPAWN.nspawn.sh @@ -943,6 +943,17 @@ matrix_run_one() { return 0 } +testcase_api_vfs() { + local api_vfs_writable + + for api_vfs_writable in yes no network; do + matrix_run_one no no $api_vfs_writable + matrix_run_one yes no $api_vfs_writable + matrix_run_one no yes $api_vfs_writable + matrix_run_one yes yes $api_vfs_writable + done +} + testcase_check_os_release() { # https://github.com/systemd/systemd/issues/29185 local base common_opts root @@ -1004,10 +1015,3 @@ EOF } run_testcases - -for api_vfs_writable in yes no network; do - matrix_run_one no no $api_vfs_writable - matrix_run_one yes no $api_vfs_writable - matrix_run_one no yes $api_vfs_writable - matrix_run_one yes yes $api_vfs_writable -done |