summaryrefslogtreecommitdiffstats
path: root/tests/ts/libmount
diff options
context:
space:
mode:
authorKarel Zak2010-10-20 12:40:55 +0200
committerKarel Zak2011-01-03 12:28:45 +0100
commit64be83b277b274bb9864ef99398c1907c0d38551 (patch)
treeedae3036f391fca041bdc2bd58ec3ae712cfc01e /tests/ts/libmount
parenttests: improve subtests initialization (diff)
downloadkernel-qcow2-util-linux-64be83b277b274bb9864ef99398c1907c0d38551.tar.gz
kernel-qcow2-util-linux-64be83b277b274bb9864ef99398c1907c0d38551.tar.xz
kernel-qcow2-util-linux-64be83b277b274bb9864ef99398c1907c0d38551.zip
tests: add quoted optstr
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/libmount')
-rwxr-xr-xtests/ts/libmount/optstr6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/ts/libmount/optstr b/tests/ts/libmount/optstr
index 11b707d07..a58eaaa70 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