From: Karel Zak Date: Wed, 20 Oct 2010 10:40:55 +0000 (+0200) Subject: tests: add quoted optstr X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64be83b277b274bb9864ef99398c1907c0d38551;p=util-linux tests: add quoted optstr Signed-off-by: Karel Zak --- 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