]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: allow to skip matrix_run_one() if $TEST_MATCH_TESTCASE is set
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 16 Aug 2024 16:47:33 +0000 (01:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 16 Aug 2024 16:47:33 +0000 (01:47 +0900)
test/units/TEST-13-NSPAWN.nspawn.sh

index 0c74d2e16e1752607febafc477cd48e05fd4bfeb..80ba5c97a316c15f4c11c68e53173f42dcb54424 100755 (executable)
@@ -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