From: SZEDER Gábor Date: Sat, 29 Jun 2019 17:23:35 GMT Subject: Re: [PATCH v5 02/11] commit-graph: return with errors during write Message-ID: <20190629172335.GH21574@szeder.dev> In-Reply-To: <95f66e85b2fe93a218dad4c04c16718d053fb002.1560346173.git.gitgitgadget@gmail.com> On Wed, Jun 12, 2019 at 06:29:37AM -0700, Derrick Stolee via GitGitGadget wrote: > diff --git a/t/t5318-commit-graph.sh b/t/t5318-commit-graph.sh > index e80c1cac02..3b6fd0d728 100755 > --- a/t/t5318-commit-graph.sh > +++ b/t/t5318-commit-graph.sh > @@ -23,6 +23,14 @@ test_expect_success 'write graph with no packs' ' > test_path_is_file info/commit-graph > ' > > +test_expect_success 'close with correct error on bad input' ' > + cd "$TRASH_DIRECTORY/full" && > + echo doesnotexist >in && > + { git commit-graph write --stdin-packs stderr; ret=$?; } && > + test "$ret" = 1 && This could be: test_expect_code 1 git commit-graph write --stdin-packs stderr > + test_i18ngrep "error adding pack" stderr > +'