chiark / gitweb /
Testing: Break out srcdump-prep
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 3 Nov 2015 18:57:14 +0000 (18:57 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 3 Nov 2015 18:57:14 +0000 (18:57 +0000)
Remove a bit more of this boilerplate.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/autotest
tests/srcdump-login.at
tests/srcdump-loginback.at

index 4737b1ef7c39c98853d956bf8621350645ead529..4fc506835f9dc6365ccbb70b5944187160f3aabe 100755 (executable)
@@ -98,6 +98,12 @@ proc loginas {user {password sesame} {wanttxt ACCESSGRANTED}} {
      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
index 895fa363ff1442443275ba9d803ff602da12eff0..6d7d0c9cdb35e887923557df9759a96b75998b26 100644 (file)
@@ -17,9 +17,7 @@
 # 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
 
index 4a2e402a93b48231cfda1fcfacefe26420a3564e..856a6f2861fc406c16a8b53b491a9f223feab780 100644 (file)
@@ -17,9 +17,7 @@
 # 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