diff options
author | Jeff King <peff@peff.net> | 2012-10-23 18:05:49 -0400 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2012-10-24 03:36:52 -0400 |
commit | cb20b69166786210bcad406c192763f90be1639a (patch) | |
tree | c710db290b5c2aa2f1bf6605c60ca23e9e52b750 | |
parent | t1300: remove redundant test (diff) | |
download | tgif-cb20b69166786210bcad406c192763f90be1639a.tar.xz |
t1300: test "git config --get-all" more thoroughly
We check that we can "--get-all" a multi-valued variable,
but we do not actually confirm that the output is sensible.
Doing so reveals that it works fine, but this will help us
ensure we do not have regressions in the next few patches,
which will touch this area.
Signed-off-by: Jeff King <peff@peff.net>
-rwxr-xr-x | t/t1300-repo-config.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index ed75c5caff..51dd5b58bf 100755 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh @@ -258,8 +258,13 @@ test_expect_success 'ambiguous get' ' test_must_fail git config --get nextsection.nonewline ' -test_expect_success 'get multivar' ' - git config --get-all nextsection.nonewline +test_expect_success 'multi-valued get-all returns all' ' + cat >expect <<-\EOF && + wow + wow2 for me + EOF + git config --get-all nextsection.nonewline >actual && + test_cmp expect actual ' cat > expect << EOF |