mirror of
https://github.com/git/git
synced 2024-08-23 18:00:25 +00:00
Merge branch 'bw/format-patch-o-create-leading-dirs'
Test update. * bw/format-patch-o-create-leading-dirs: t4014: make output-directory tests self-contained
This commit is contained in:
commit
c555caab7a
|
@ -1615,17 +1615,20 @@ test_expect_success 'format-patch -o with no leading directories' '
|
|||
'
|
||||
|
||||
test_expect_success 'format-patch -o with leading existing directories' '
|
||||
git format-patch -o patches/side master..side &&
|
||||
rm -rf existing-dir &&
|
||||
mkdir existing-dir &&
|
||||
git format-patch -o existing-dir/patches master..side &&
|
||||
count=$(git rev-list --count master..side) &&
|
||||
ls patches/side >list &&
|
||||
ls existing-dir/patches >list &&
|
||||
test_line_count = $count list
|
||||
'
|
||||
|
||||
test_expect_success 'format-patch -o with leading non-existing directories' '
|
||||
rm -fr patches &&
|
||||
git format-patch -o patches/side master..side &&
|
||||
rm -rf non-existing-dir &&
|
||||
git format-patch -o non-existing-dir/patches master..side &&
|
||||
count=$(git rev-list --count master..side) &&
|
||||
ls patches/side >list &&
|
||||
test_path_is_dir non-existing-dir &&
|
||||
ls non-existing-dir/patches >list &&
|
||||
test_line_count = $count list
|
||||
'
|
||||
|
||||
|
|
Loading…
Reference in a new issue