summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2019-06-27 19:33:13 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-06-28 12:45:38 +0100
commit676ab414d093c6eb3e1eacfd9220a0d9b1c88b97 (patch)
treeafe1864b30c2e6cf90f82ec537df91a6e77ab87f /tests
parentee6a630c930cc74e00a0ff35561259aef1d455b8 (diff)
test suite: break out t-splitbrain-rm-1-patch
We are going to call this from one of the force split tests. No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/lib b/tests/lib
index 616725d..d7cf396 100644
--- a/tests/lib
+++ b/tests/lib
@@ -782,16 +782,21 @@ t-splitbrain-pushed-good-end-made-dep14 () {
cd $tmp/$p
}
-t-splitbrain-rm-gitignore-patch () {
+t-splitbrain-rm-1-patch () {
+ local patchname=$1
perl -i -pe '
- next unless $_ eq "auto-gitignore\n";
+ next unless $_ eq "'"$patchname"'\n";
die if $counter++;
chomp;
- rename "debian/patches/$_", "../t-auto-gitignore" or die $!;
+ rename "debian/patches/$_", "../t-'"$patchname"'" or die $!;
$_ = "";
' debian/patches/series
}
+t-splitbrain-rm-gitignore-patch () {
+ t-splitbrain-rm-1-patch auto-gitignore
+}
+
t-gbp-pushed-good () {
local suite=${1:-sid}
t-splitbrain-pushed-good-start