From 468b97554107a9be2d43bdce9ee12862b1520e2f Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Fri, 17 Oct 2025 11:11:38 -0400 Subject: [PATCH] tests: optstr: test redundant commas optstr, used for parsing mount option lists, eats leading, trailing, and duplicated commas, but I can't find any test coverage for that behavior. Amend the existing optstr test to hit all the cases I can think of Signed-off-by: Cole Robinson --- tests/ts/misc/optstr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ts/misc/optstr b/tests/ts/misc/optstr index edc2f4cf1..9277a8f4b 100755 --- a/tests/ts/misc/optstr +++ b/tests/ts/misc/optstr @@ -8,7 +8,7 @@ ts_init "$*" ts_check_test_command "$TS_HELPER_STRUTILS" -$TS_HELPER_STRUTILS --optstr "key=\"v,a,l,u,e\",foo,bar=BAR,\"/path/with/,comma\"=data" >> $TS_OUTPUT 2>> $TS_ERRLOG +$TS_HELPER_STRUTILS --optstr ",,key=\"v,a,l,u,e\",foo,,,,bar=BAR,\"/path/with/,comma\"=data,," >> $TS_OUTPUT 2>> $TS_ERRLOG ts_finalize -- 2.47.3