• J
    test-lib: add the test_pause convenience function · c4d2539a
    Jens Lehmann 提交于
    Since 781f76b1 (test-lib: redirect stdin of tests) you can't simply put a
    "bash &&" into a test for debugging purposes anymore. Instead you'll have
    to use "bash <&6 >&3 2>&4".
    
    As that invocation is not that easy to remember add the test_pause
    convenience function. It invokes "$SHELL_PATH" to provide a sane shell
    for the user.
    
    This function also checks if the -v flag is given and will error out if
    that is not the case instead of letting the test hang until ^D is pressed.
    Signed-off-by: NJens Lehmann <Jens.Lehmann@web.de>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    c4d2539a
test-lib.sh 27.2 KB