From 37a0cb653704a1c0ded4750946915e5ce4718125 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 7 Nov 2016 23:04:22 +0000 Subject: [PATCH] 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 --- tests/tests/import-nonnative | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.30.2