From: Sean Whitton Date: Sun, 12 Feb 2017 23:55:21 +0000 (-0700) Subject: test suite: Add library function t-push-was-source-only X-Git-Tag: archive/debian/4.2~5 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=a2f4a0b0b1f1eb286c16586af072cd419fbbf51e;ds=sidebyside test suite: Add library function t-push-was-source-only No functional change. Signed-off-by: Sean Whitton Acked-by: Ian Jackson --- diff --git a/tests/lib b/tests/lib index fcc2a697..e4554e37 100644 --- a/tests/lib +++ b/tests/lib @@ -635,6 +635,21 @@ t-check-pushed-master () { if [ x$mbase = x$master ]; then fail "failed to ff master"; fi } +t-push-was-source-only () { + local f + t-files-notexist $tmp/incoming/${p}_${v}_*.deb \ + $tmp/incoming/${p}_${v}_*.udeb + # we permit _source.buildinfo files; see test_changes_source_only() + for f in $tmp/incoming/${p}_${v}_*.buildinfo; do + if [ -e $f ]; then + case "$f" in + *_source.buildinfo) ;; + *) fail "non-source-only file $f exists!" ;; + esac + fi + done +} + t-pushed-good () { local branch=$1 local suite=${2:-sid}