From 64be83b277b274bb9864ef99398c1907c0d38551 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 20 Oct 2010 12:40:55 +0200 Subject: [PATCH] tests: add quoted optstr Signed-off-by: Karel Zak --- tests/expected/libmount/optstr-append | 2 +- tests/ts/libmount/optstr | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/expected/libmount/optstr-append b/tests/expected/libmount/optstr-append index 10933cb1..68e58458 100644 --- a/tests/expected/libmount/optstr-append +++ b/tests/expected/libmount/optstr-append @@ -1 +1 @@ -result: >aaa,bbb=BBB,ccc,ddd< +result: >aaa,bbb=BBB,context="foo,bar,gogo",ccc,ddd< diff --git a/tests/ts/libmount/optstr b/tests/ts/libmount/optstr index 11b707d0..a58eaaa7 100755 --- a/tests/ts/libmount/optstr +++ b/tests/ts/libmount/optstr @@ -11,7 +11,7 @@ ts_init "$*" TESTPROG="$TS_HELPER_LIBMOUNT_OPTSTR" ts_init_subtest "append" -$TESTPROG --append "aaa,bbb=BBB,ccc" "ddd" &> $TS_OUTPUT +$TESTPROG --append "aaa,bbb=BBB,context=\"foo,bar,gogo\",ccc" "ddd" &> $TS_OUTPUT ts_finalize_subtest ts_init_subtest "append-value" @@ -58,6 +58,10 @@ ts_init_subtest "remove" $TESTPROG --remove "aaa,bbb=BBB,ccc" "aaa" &> $TS_OUTPUT ts_finalize_subtest +ts_init_subtest "remove-quoted" +$TESTPROG --remove "aaa,context=\"foo,bar,gogo\",bbb=BBB,ccc" "context" &> $TS_OUTPUT +ts_finalize_subtest + ts_init_subtest "remove-value" $TESTPROG --remove "aaa,bbb=BBB,ccc" "bbb" &> $TS_OUTPUT ts_finalize_subtest -- 2.39.5