#!/bin/bash
set -e
. tests/lib

t-tstunt-parsechangelog
t-buildproductsdir-config

t-prep-newpackage example 1.0

# dput is not idempotent.  If it succeeds it writes a log file
# and then future runs fail.  So no run-expect-success-but-report-failure.
#
t-flaky-wrapper-prepare dput ''			\
    just-fail					\
    run-expect-success

cd $p
git config --global dgit.default.push-subcmd source

t-dgit						\
    --retry-schedule=0,0			\
    --dput=$tmp/flaky-dput			\
    push --new

t-flaky-wrapper-check-complete dput

t-pushed-good master

t-ok
