summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-11-07 23:04:22 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-11-07 23:05:05 +0000
commit37a0cb653704a1c0ded4750946915e5ce4718125 (patch)
tree4b7ec8721b079df3bbffc19f54a3210a4e4b4906 /tests
parent4b860909da046779922347e233d4a29c64521e1c (diff)
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 <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/import-nonnative7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/tests/import-nonnative b/tests/tests/import-nonnative
index 98076f0..d709ab5 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