From 676ab414d093c6eb3e1eacfd9220a0d9b1c88b97 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 27 Jun 2019 19:33:13 +0100 Subject: 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 --- tests/lib | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tests/lib') 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 -- cgit v1.2.3