diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-06-27 19:33:13 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-06-28 12:45:38 +0100 |
commit | 676ab414d093c6eb3e1eacfd9220a0d9b1c88b97 (patch) | |
tree | afe1864b30c2e6cf90f82ec537df91a6e77ab87f /tests/lib | |
parent | ee6a630c930cc74e00a0ff35561259aef1d455b8 (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/lib')
-rw-r--r-- | tests/lib | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |