chiark / gitweb /
Test suite: Test dgit-repos-policy-debian database retry
[dgit.git] / infra / dgit-repos-policy-debian
index 5d843a06b611423e805b734567bce3f875c4126d..a770c55ec07d40e5858c2c782c41934a6ecab8f1 100755 (executable)
@@ -462,6 +462,10 @@ for (;;) {
        poldb_setup(poldb_path($repos));
        $stderr = '';
 
+       eval ($ENV{'DGIT_DRS_RPD_TEST_DBLOOP_HOOK'}//'');
+       die $@ if length $@;
+       # used by tests/tests/debpolicy-dbretry
+
        $poldbh->{HandleError} = sub {
            return 0 unless $poldbh->err == 5; # SQLITE_BUSY, not in .pm :-(
            die bless { }, $db_busy_exception;