From 63d4806055caefc6942caae20ddf6dcb0197e99d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Thu, 25 May 2023 07:19:03 +0200 Subject: [PATCH] libmount: (tests) split helper tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- tests/expected/mount/special-basic | 1 + tests/expected/mount/{special => special-options} | 0 tests/ts/mount/special | 7 +++++++ 3 files changed, 8 insertions(+) create mode 100644 tests/expected/mount/special-basic rename tests/expected/mount/{special => special-options} (100%) 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 -- 2.47.3