Fix test t3701-add-interactive.sh
PATCH 1/1 Fix test t3701-add-interactive.sh
One of the tests used to fail due to EOF not in the first column and not continued &&.
--- t/t3701-add-interactive.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
t/t3701-add-interactive.sh +2 -2
@@ -83,9 +83,9 @@ EOF test_expect_success PERL 'setup fake editor' ' cat >fake_editor.sh <<EOF - EOF +EOF chmod a+x fake_editor.sh && - test_set_editor "$(pwd)/fake_editor.sh" && + test_set_editor "$(pwd)/fake_editor.sh" ' test_expect_success PERL 'dummy edit works' '
Signature · 4 lines
1.7.5 -- Kacper Kornet
Quoted 13 lines · Kacper Kornet
One of the tests used to fail due to EOF not in the first column and not continued &&.
Signed-off-by Kacper Kornet <[email protected]>--- t/t3701-add-interactive.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)t/t3701-add-interactive.sh +0
-0
t/t3701-add-interactive.sh EOF · line 89
Quoted 9 lines
t/t3701-add-interactive.sh +2
-2@@ -83,9 +83,9 @@ EOF test_expect_success PERL 'setup fake editor' ' cat >fake_editor.sh <<EOF - EOF +EOF chmod a+x fake_editor.sh && - test_set_editor "$(pwd)/fake_editor.sh" && + test_set_editor "$(pwd)/fake_editor.sh" '
Very curious. I never saw the breakage. We are getting:
./test-lib.sh: line 450: warning: here-document at line 447 delimited by end-of-file (wanted `EOF')
Well spotted. Thanks.
Quoted 16 lines · Junio C Hamano
Quoted 13 lines · Kacper Kornet
One of the tests used to fail due to EOF not in the first column and not continued &&.
Signed-off-by Kacper Kornet <[email protected]>--- t/t3701-add-interactive.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)t/t3701-add-interactive.sh +0
-0@@ -83,9 +83,9 @@ EOF
Quoted 10 lines
t/t3701-add-interactive.sh EOF · line 89
Quoted 8 lines
t/t3701-add-interactive.sh +2
-2test_expect_success PERL 'setup fake editor' ' cat >fake_editor.sh <<EOF - EOF +EOF chmod a+x fake_editor.sh && - test_set_editor "$(pwd)/fake_editor.sh" && + test_set_editor "$(pwd)/fake_editor.sh" 'Very curious. I never saw the breakage. We are getting:
It is probably we are using a different shell as /bin/sh.
Quoted 1 line
Well spotted. Thanks.
By the way. The credit shoud probably go to [email protected]. I have just rediscovered it in my private build.
Signature · 1 line
Kacper Kornet