From: Ian Jackson Date: Tue, 10 Mar 2020 18:30:30 +0000 (+0000) Subject: mtest/t-userv: Check lack of optional group in fragment X-Git-Tag: v0.6.1~15 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fa02f7fc18d19b7c9e930c8471fcda949794f764;p=secnet.git mtest/t-userv: Check lack of optional group in fragment Signed-off-by: Ian Jackson --- 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