diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-20 18:33:53 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-20 18:33:53 (GMT) |
commit | ace1f99cc8cf0a688f36c094552f90a398eb137f (patch) | |
tree | 09e7c492f8cae8e078ff91df706901308c8504fc /t/chainlint/t7900-subtree.expect | |
parent | a15bfa517dc2b8165ca038300faef60fa66cfcc6 (diff) | |
parent | 4f69176feb1b441d46dab7a0ac679df7edf44f5f (diff) | |
download | git-ace1f99cc8cf0a688f36c094552f90a398eb137f.zip git-ace1f99cc8cf0a688f36c094552f90a398eb137f.tar.gz git-ace1f99cc8cf0a688f36c094552f90a398eb137f.tar.bz2 |
Merge branch 'es/chain-lint-more'
Improve built-in facility to catch broken &&-chain in the tests.
* es/chain-lint-more:
chainlint: add test of pathological case which triggered false positive
chainlint: recognize multi-line quoted strings more robustly
chainlint: let here-doc and multi-line string commence on same line
chainlint: recognize multi-line $(...) when command cuddled with "$("
chainlint: match 'quoted' here-doc tags
chainlint: match arbitrary here-docs tags rather than hard-coded names
Diffstat (limited to 't/chainlint/t7900-subtree.expect')
-rw-r--r-- | t/chainlint/t7900-subtree.expect | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/chainlint/t7900-subtree.expect b/t/chainlint/t7900-subtree.expect new file mode 100644 index 0000000..c991342 --- /dev/null +++ b/t/chainlint/t7900-subtree.expect @@ -0,0 +1,10 @@ +( + chks="sub1sub2sub3sub4" && + chks_sub=$(cat | sed 's,^,sub dir/,' +>>) && + chkms="main-sub1main-sub2main-sub3main-sub4" && + chkms_sub=$(cat | sed 's,^,sub dir/,' +>>) && + subfiles=$(git ls-files) && + check_equal "$subfiles" "$chkms$chks" +>) |