From: Thomas Weißschuh Date: Thu, 25 May 2023 05:19:03 +0000 (+0200) Subject: libmount: (tests) split helper tests X-Git-Tag: v2.40-rc1~425^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63d4806055caefc6942caae20ddf6dcb0197e99d;p=thirdparty%2Futil-linux.git libmount: (tests) split helper tests This splits the test introduced in commit 06e05eb0f785 ("libmount: don't pass option "defaults" to helper") into its own subtest. We will have more subtests. Signed-off-by: Thomas Weißschuh --- diff --git a/tests/expected/mount/special-basic b/tests/expected/mount/special-basic new file mode 100644 index 0000000000..99997d354f --- /dev/null +++ b/tests/expected/mount/special-basic @@ -0,0 +1 @@ +/sbin/mount.mytest called with "/foo /bar -o rw" diff --git a/tests/expected/mount/special b/tests/expected/mount/special-options similarity index 100% rename from tests/expected/mount/special rename to tests/expected/mount/special-options diff --git a/tests/ts/mount/special b/tests/ts/mount/special index 87ebbf60f9..ddb417aa16 100755 --- a/tests/ts/mount/special +++ b/tests/ts/mount/special @@ -35,7 +35,14 @@ echo "$0 called with \"$*\"" EOF chmod +x $MOUNTER +ts_init_subtest "basic" +$TS_CMD_MOUNT -t mytest /foo /bar &> $TS_OUTPUT +ts_finalize_subtest + +ts_init_subtest "options" $TS_CMD_MOUNT -t mytest -o foo,defaults /foo /bar &> $TS_OUTPUT +ts_finalize_subtest + rm -f $MOUNTER ts_finalize