From: Ian Jackson Date: Mon, 7 Nov 2016 23:04:22 +0000 (+0000) Subject: Test suite: import-nonnative: Prepare for more tests X-Git-Tag: archive/debian/2.10~12 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=37a0cb653704a1c0ded4750946915e5ce4718125 Test suite: import-nonnative: Prepare for more tests * Break chk into chk1 and chk2, so we can do stuff in the middle * Remove $p between runs, so that we can do another test with the same $p No functional change. Signed-off-by: Ian Jackson --- diff --git a/tests/tests/import-nonnative b/tests/tests/import-nonnative index 98076f06..d709ab59 100755 --- a/tests/tests/import-nonnative +++ b/tests/tests/import-nonnative @@ -4,12 +4,15 @@ set -e t-tstunt-parsechangelog -chk () { +chk1 () { p=$1 v=$2 t-archive $p $v +} +chk2() { t-git-none + rm -rf $p t-dgit --no-rm-on-error clone $p # And now we make an update using the same orig tarball, and @@ -66,6 +69,8 @@ chk () { cd .. } +chk() { chk1 "$@"; chk2; } + # 1.0 with diff chk pari-extra 3-1