Remove a bit more of this boilerplate.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
submitform-expect $wanttxt
}
+proc srcdump-prep {} {
+ global timeout env
+ set env(CAFTEST_NOSRCDUMP) 0
+ set timeout [expr {$timeout * 3}]
+}
+
proc srcdump-save-check {} {
global tt
global outertar sd files
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
-set env(CAFTEST_NOSRCDUMP) 0
-
-set timeout [expr {$timeout * 3}]
+srcdump-prep
dospawn
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
-set env(CAFTEST_NOSRCDUMP) 0
-
-set timeout [expr {$timeout * 3}]
+srcdump-prep
dospawn