From fa02f7fc18d19b7c9e930c8471fcda949794f764 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 10 Mar 2020 18:30:30 +0000 Subject: [PATCH] mtest/t-userv: Check lack of optional group in fragment Signed-off-by: Ian Jackson --- mtest/t-userv | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mtest/t-userv b/mtest/t-userv index a3843e0..87d97b0 100755 --- a/mtest/t-userv +++ b/mtest/t-userv @@ -55,3 +55,12 @@ if {![catch { eval run-mss $tmp/out.sites >$tmp/out.conf diff-mss-sites-conf mtest/e-userv.conf $tmp/out.conf + +#----- works without group in `location' line ----- + +set testgf $tmp/Ginside.no-group + +exec sed < mtest/Ginside.sites > $testgf {/^location / s/ root$//} + +set testargs [lreplace $good end end $testgf] +eval run-mss-userv $testargs -- 2.30.2