]> Kevux Git Server - rit/commitdiff
t: drop debug `cat` calls
authorMartin Ågren <martin.agren@gmail.com>
Sun, 23 Feb 2020 08:48:36 +0000 (09:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2020 19:18:25 +0000 (11:18 -0800)
We `cat` files, but don't inspect or grab the contents in any way.
Unlike in an earlier commit, there is no reason to suspect that these
files could be missing, so `cat`-ing them is just wasted effort.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0021-conversion.sh
t/t1406-submodule-ref-store.sh
t/t1450-fsck.sh
t/t2107-update-index-basic.sh
t/t3007-ls-files-recurse-submodules.sh
t/t5150-request-pull.sh
t/t5409-colorize-remote-messages.sh
t/t5510-fetch.sh
t/t8003-blame-corner-cases.sh
t/t9300-fast-import.sh
t/t9800-git-p4-basic.sh

index 6c6d77b..dc664da 100755 (executable)
@@ -795,7 +795,6 @@ test_expect_success PERL 'missing file in delayed checkout' '
 
        rm -rf repo-cloned &&
        test_must_fail git clone repo repo-cloned 2>git-stderr.log &&
-       cat git-stderr.log &&
        grep "error: .missing-delay\.a. was not filtered properly" git-stderr.log
 '
 
index d199d87..36b7ef5 100755 (executable)
@@ -75,7 +75,7 @@ test_expect_success 'for_each_reflog()' '
 '
 
 test_expect_success 'for_each_reflog_ent()' '
-       $RUN for-each-reflog-ent HEAD >actual && cat actual &&
+       $RUN for-each-reflog-ent HEAD >actual &&
        head -n1 actual | grep first &&
        tail -n2 actual | head -n1 | grep master.to.new
 '
index 02478bc..d09eff5 100755 (executable)
@@ -141,7 +141,6 @@ test_expect_success 'email without @ is okay' '
        git update-ref refs/heads/bogus "$new" &&
        test_when_finished "git update-ref -d refs/heads/bogus" &&
        git fsck 2>out &&
-       cat out &&
        ! grep "commit $new" out
 '
 
index 2242cd0..a30b7ca 100755 (executable)
@@ -9,7 +9,6 @@ Tests for command-line parsing and basic operation.
 
 test_expect_success 'update-index --nonsense fails' '
        test_must_fail git update-index --nonsense 2>msg &&
-       cat msg &&
        test -s msg
 '
 
index 318b5bc..4a08000 100755 (executable)
@@ -130,7 +130,6 @@ test_expect_success '--recurse-submodules and pathspecs setup' '
 
        git ls-files --recurse-submodules >actual &&
        test_cmp expect actual &&
-       cat actual &&
        git ls-files --recurse-submodules "*" >actual &&
        test_cmp expect actual
 '
index 1ad4ecc..c1811ea 100755 (executable)
@@ -150,7 +150,6 @@ test_expect_success 'pull request after push' '
                git request-pull initial origin master:for-upstream >../request
        ) &&
        sed -nf read-request.sed <request >digest &&
-       cat digest &&
        {
                read task &&
                read repository &&
@@ -179,7 +178,6 @@ test_expect_success 'request asks HEAD to be pulled' '
                git request-pull initial "$downstream_url" >../request
        ) &&
        sed -nf read-request.sed <request >digest &&
-       cat digest &&
        {
                read task &&
                read repository &&
index 2a8c449..5d8f401 100755 (executable)
@@ -56,14 +56,13 @@ test_expect_success 'short line' '
 
 test_expect_success 'case-insensitive' '
        git --git-dir child/.git -c color.remote=always push -f origin HEAD:refs/heads/case-insensitive 2>output &&
-       cat output &&
        test_decode_color <output >decoded &&
        grep "<BOLD;RED>error<RESET>: error" decoded &&
        grep "<BOLD;RED>ERROR<RESET>: also highlighted" decoded
 '
 
 test_expect_success 'leading space' '
-       git --git-dir child/.git -c color.remote=always push -f origin HEAD:refs/heads/leading-space 2>output &&        cat output &&
+       git --git-dir child/.git -c color.remote=always push -f origin HEAD:refs/heads/leading-space 2>output &&
        test_decode_color <output >decoded &&
        grep "  <BOLD;RED>error<RESET>: leading space" decoded
 '
index 4b60282..0a4c7fb 100755 (executable)
@@ -354,7 +354,6 @@ test_expect_success 'fetch from GIT URL with a non-applying branch.<name>.merge
 # the strange name is: a\!'b
 test_expect_success 'quoting of a strangely named repo' '
        test_must_fail git fetch "a\\!'\''b" > result 2>&1 &&
-       cat result &&
        grep "fatal: '\''a\\\\!'\''b'\''" result
 '
 
index 1c5fb1d..9130b88 100755 (executable)
@@ -173,7 +173,6 @@ test_expect_success 'blame during cherry-pick with file rename conflict' '
        git show HEAD@{1}:rodent > rodent &&
        git add rodent &&
        git blame -f -C -C1 rodent | sed -e "$pick_fc" >current &&
-       cat current &&
        cat >expected <<-\EOF &&
        mouse-Initial
        mouse-Second
index ae9950a..3e41c58 100755 (executable)
@@ -1047,7 +1047,6 @@ test_expect_success 'M: rename root to subdirectory' '
        EOF
        git fast-import <input &&
        git diff-tree -M -r M4^ M4 >actual &&
-       cat actual &&
        compare_diff_raw expect actual
 '
 
index 5856563..c98c1df 100755 (executable)
@@ -202,7 +202,6 @@ test_expect_success 'exit when p4 fails to produce marshaled output' '
                export PATH &&
                test_expect_code 1 git p4 clone --dest="$git" //depot >errs 2>&1
        ) &&
-       cat errs &&
        test_i18ngrep ! Traceback errs
 '