chiark / gitweb /
git-debrebase: test suite: gdr-subcommands: honour new $xopts
[dgit.git] / tests / tests / debpolicy-dbretry
index d45718ac7613bfffb7f19f44f8bbd92241338f7c..a9f2334121c841ca43351eeb111d2c6fec76335f 100755 (executable)
@@ -22,7 +22,7 @@ t-commit 'Make something to autotaint'
 t-dgit build
 t-dgit push --new
 
-autotaint=`t-git-get-ref "refs/tags/debian/$v"`
+autotaint=`t-git-get-ref "refs/tags/$tagpfx/$v"`
 
 git reset --hard start
 t-commit 'Thing which will autotaint'
@@ -40,13 +40,13 @@ echo >&3 ".output $taintsout"
 echo >&3 'select * from taints;';
 echo >&3 'create table dummy (x text);'
 
-while ! grep $taint $taintsout; do sleep 0.1; done
-
 t-dgit build
 
+while ! grep $taint $taintsout; do sleep 0.1; done
+
 DGIT_RPD_TEST_DBLOOP_HOOK='
        print STDERR "DBLOOP HOOK $sleepy\n";
-       $poldbh->sqlite_busy_timeout(500);
+       $poldbh->sqlite_busy_timeout(2500);
        if ($sleepy > 2) {
                system '\''
                        set -ex
@@ -64,4 +64,4 @@ ls $tmp/sqlite3.rolled-back
 
 t-policy-admin list-taints | tee $tmp/taints-list | grep $autotaint
 
-echo ok.
+t-ok