Skip to content

Commit

Permalink
test: allow to skip matrix_run_one() if $TEST_MATCH_TESTCASE is set
Browse files Browse the repository at this point in the history
(cherry picked from commit 7908e1d459f5f2893d6aaf1d62009da7856f9410)
(cherry picked from commit 93759103e6164e69bc92d2ce6c11d79c95da0ced)
  • Loading branch information
yuwata authored and bluca committed Sep 10, 2024
1 parent db1d9bf commit 834afe7
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions test/units/testsuite-13.nspawn.sh
Original file line number Diff line number Diff line change
@@ -844,6 +844,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
@@ -875,10 +886,3 @@ testcase_check_os_release() {
}

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

0 comments on commit 834afe7

Please sign in to comment.