Skip to contentSkip to conversation

Tests with broken && chains in pu

PATCH Johannes Sixt 4 participants 5 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Junio,

two commits in pu currently add tests with broken && chains:

abbfd017 in cw/ws-indent-with-tab:

t/t4015-diff-whitespace.sh +3 -3
index 9e57f80..e92eab0 100755
@@ -354,7 +354,7 @@ test_expect_success 'check tabs and spaces as indentation (indent-with-non-tab:
 
 test_expect_success 'check tabs as indentation (tab-in-indent: off)' '
 
-	git config core.whitespace "-tab-in-indent"
+	git config core.whitespace "-tab-in-indent" &&
 	echo "	foo ();" > x &&
 	git diff --check
 
@@ -378,7 +378,7 @@ test_expect_success 'check tabs and spaces as indentation (tab-in-indent: on)' '
 
 test_expect_success 'check tab-in-indent and indent-with-non-tab conflict' '
 
-	git config core.whitespace "tab-in-indent,indent-with-non-tab"
+	git config core.whitespace "tab-in-indent,indent-with-non-tab" &&
 	echo "foo ();" > x &&
 	test_must_fail git diff --check
 
@@ -386,7 +386,7 @@ test_expect_success 'check tab-in-indent and indent-with-non-tab conflict' '
 
 test_expect_success 'check tab-in-indent excluded from wildcard whitespace attribute' '
 
-	git config --unset core.whitespace
+	git config --unset core.whitespace &&
 	echo "x whitespace" > .gitattributes &&
 	echo "	  foo ();" > x &&
 	git diff --check &&

c8eeb6301 in sr/remote-helper-export

t/t5800-remote-helpers.sh +2 -2
index 33f546b..eb31709 100755
@@ -9,7 +9,7 @@ test_description='Test remote-helper import and export commands'
 
 test_expect_success 'setup repository' '
 	git init --bare server/.git &&
-	git clone server public
+	git clone server public &&
 	(cd public &&
 	 echo content >file &&
 	 git add file &&
@@ -18,7 +18,7 @@ test_expect_success 'setup repository' '
 '
 
 test_expect_success 'cloning from local repo' '
-	git clone "testgit::${PWD}/server" localclone
+	git clone "testgit::${PWD}/server" localclone &&
 	test_cmp public/file localclone/file
 '
 
#1 lore raw
Quoted 2 lines · Johannes Sixt

two commits in pu currently add tests with broken && chains:
abbfd017 in cw/ws-indent-with-tab:

Thanks for spotting this mistake Johannes. Should I resubmit a corrected version of the patch, Junio, or do you prefer to squash fixups directly into the pu branch?

Best wishes,

Chris.

#3 lore raw
In reply to Johannes Sixt

Heya,

Quoted 18 lines · Johannes Sixt

two commits in pu currently add tests with broken && chains:

t/t5800-remote-helpers.sh +0 -0
index 33f546b..eb31709 100755
@@ -9,7 +9,7 @@ test_description='Test remote-helper import and export commands'
 

 test_expect_success 'setup repository' '
       git init --bare server/.git &&
-       git clone server public
+       git clone server public &&
       (cd public &&
        echo content >file &&
        git add file &&

t/t5800-remote-helpers.sh +0 -0
@@ -18,7 +18,7 @@ test_expect_success 'setup repository' '

 '

Quoted 5 lines

 test_expect_success 'cloning from local repo' '
-       git clone "testgit::${PWD}/server" localclone
+       git clone "testgit::${PWD}/server" localclone && test_cmp public/file localclone/file
 '

Thanks for noticing, may I ask how you noticed? Do you have a script or was it manual review?

Signature · 3 lines
Cheers,

Sverre Rabbelier
#4 lore raw
Quoted 2 lines · Sverre Rabbelier

Thanks for noticing, may I ask how you noticed? Do you have a script or was it manual review?

It was manual review. I reviewed the patches in pu because I noticed a broken && chain in a recently submitted patch, but I didn't remember which one it was. So I took the time to look at all new test cases in pu after Junio's recent What's in git message.

-- Hannes