Thread (24 messages) flat view 24 messages, 3 authors, 2016-06-15

Re: [PATCHv4 10/15] t6016 (rev-list-graph-simplify-history): add missing &&

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:38
Subsystem: the rest · Maintainer: Linus Torvalds

(+cc: Adam Simpkins)
Hi,

Thanks for doing this tedious work.

Elijah Newren wrote:
Also removed several repeated tag and branch deletions
Nit: present tense
, since the tags and
branches had already been deleted.
I suspect the repeated deletions were to allow skipping individual
tests.  Maybe something like the following on top of your patch
would achieve that.

The rest looks good to me, for what it's worth.
diff --git a/t/t6016-rev-list-graph-simplify-history.sh b/t/t6016-rev-list-graph-simplify-history.sh
index e640c41..5036940 100755
--- a/t/t6016-rev-list-graph-simplify-history.sh
+++ b/t/t6016-rev-list-graph-simplify-history.sh
@@ -116,12 +116,15 @@ test_expect_success '--graph --simplify-by-decoration' '
 	test_cmp expected actual
 	'
 
-# Get rid of all decorations on branch B, and graph with it simplified away
-test_expect_success '--graph --simplify-by-decoration prune branch B' '
-	rm -f expected &&
+test_expect_success 'setup: get rid of decorations on branch B' '
 	git tag -d B2 &&
 	git tag -d B1 &&
-	git branch -d B &&
+	git branch -d B
+'
+
+# Graph with branch B simplified away.
+test_expect_success '--graph --simplify-by-decoration prune branch B' '
+	rm -f expected &&
 	echo "* $A7" >> expected &&
 	echo "*   $A6" >> expected &&
 	echo "|\\  " >> expected &&
-- 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help