diff options
author | Martin Ågren <martin.agren@gmail.com> | 2018-09-28 17:43:59 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-28 11:45:31 -0700 |
commit | fc0503b04e4c5f69ab74d7d0fb889c1b7c78aced (patch) | |
tree | d8ecaa2d19d3546b967e90b595be3890bf9568d1 | |
parent | Git 2.19 (diff) | |
download | tgif-fc0503b04e4c5f69ab74d7d0fb889c1b7c78aced.tar.xz |
t1400: drop debug `echo` to actually execute `test`
Instead of running `test "foo" = "$(bar)"`, we prefix the whole thing
with `echo`. Comparing to nearby tests makes it clear that this is just
debug leftover. This line has actually been modified four times since it
was introduced in e52290428b (General ref log reading improvements.,
2006-05-19) and the `echo` has always survived. Let's finally drop it.
This script could need some more cleanups. This is just an immediate fix
so that we actually test what we intend to.
All other hits for `git grep "\<echo test " -- t/` seem fine. They want
to create some input or expected output data.
Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-x | t/t1400-update-ref.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1400-update-ref.sh b/t/t1400-update-ref.sh index 7c8df20955..18bf32aa7e 100755 --- a/t/t1400-update-ref.sh +++ b/t/t1400-update-ref.sh @@ -366,7 +366,7 @@ test_expect_success 'Query master@{2005-05-25} (before history)' ' test_when_finished "rm -f o e" && git rev-parse --verify master@{2005-05-25} >o 2>e && test $C = $(cat o) && - echo test "warning: Log for '\''master'\'' only goes back to $ed." = "$(cat e)" + test "warning: Log for '\''master'\'' only goes back to $ed." = "$(cat e)" ' test_expect_success 'Query "master@{May 26 2005 23:31:59}" (1 second before history)' ' test_when_finished "rm -f o e" && |