Skip to contentSkip to conversation

Fix test t3701-add-interactive.sh

PATCH In review Kacper Kornet 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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
index d6327e7..018f5d9 100755
@@ -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
#1 lore raw
Quoted 13 lines · Kacper Kornet

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 +0 -0
index d6327e7..018f5d9 100755

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.

#2 lore raw
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 &&.

---
 t/t3701-add-interactive.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
t/t3701-add-interactive.sh +0 -0
index d6327e7..018f5d9 100755
@@ -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 -2
 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:

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