From 680c1fdcb04ec1670d47b910f981d86863838b1b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 3 Dec 2019 23:26:20 +0000 Subject: [PATCH] stest: Honour new sitesconf_hook This lets individual tests fiddle with the sites.conf. By default, we provide a proc that does nothing. Signed-off-by: Ian Jackson --- stest/common.tcl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stest/common.tcl b/stest/common.tcl index fb98c2e..cbf8fc1 100644 --- a/stest/common.tcl +++ b/stest/common.tcl @@ -28,6 +28,8 @@ set extra(outside) {} set privkey(inside) test-example/inside.privkeys/ set privkey(outside) test-example/outside.privkeys/ +proc sitesconf_hook {l} { return $l } + proc mkconf {location site} { global tmp global builddir @@ -125,6 +127,7 @@ exec cat set f [open $sitesconf r] while {[gets $f l] >= 0} { regsub {\"[^\"]*test-example/pubkeys/} $l "\"$pubkeys/" l + set l [sitesconf_hook $l] append cfg $l "\n" } set sites [read $f] -- 2.30.2