summaryrefslogtreecommitdiff
path: root/t/t3429-rebase-edit-todo.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2020-04-19 01:36:02 -0400
committerLibravatar Jonathan Nieder <jrnieder@gmail.com>2020-04-19 16:10:52 -0700
commita88dbd2f8c7fd8c1e2f63483da03bd6928e8791f (patch)
tree65634b9d9ce66ad309c96cddc4ee6f367b16fac5 /t/t3429-rebase-edit-todo.sh
parentGit 2.17.4 (diff)
downloadtgif-a88dbd2f8c7fd8c1e2f63483da03bd6928e8791f.tar.xz
t0300: make "quit" helper more realistic
We test a toy credential helper that writes "quit=1" and confirms that we stop running other helpers. However, that helper is unrealistic in that it does not bother to read its stdin at all. For now we don't send any input to it, because we feed git-credential a blank credential. But that will change in the next patch, which will cause this test to racily fail, as git-credential will get SIGPIPE writing to the helper rather than exiting because it was asked to. Let's make this one-off helper more like our other sample helpers, and have it source the "dump" script. That will read stdin, fixing the SIGPIPE problem. But it will also write what it sees to stderr. We can make the test more robust by checking that output, which confirms that we do run the quit helper, don't run any other helpers, and exit for the reason we expected. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 't/t3429-rebase-edit-todo.sh')
0 files changed, 0 insertions, 0 deletions