@ -660,11 +660,11 @@ class GclientTest(trial_dir.TestCase):
] ,
self . _get_processed ( ) )
def testRecurse list Override( self ) :
""" Verifies gclient respects the |recurse list | var syntax.
def testRecurse deps Override( self ) :
""" Verifies gclient respects the |recurse deps | var syntax.
This is what we mean to check here :
- | recurse list| = [ . . . ] on 2 levels means we pull exactly 3 deps
- | recurse deps| = { . . . } on 2 levels means we pull exactly 3 deps
( up to / fizz , but not / fuzz )
- pulling foo / bar with no recursion ( in . gclient ) is overriden by
a later pull of foo / bar with recursion ( in the dep tree )
@ -683,13 +683,13 @@ class GclientTest(trial_dir.TestCase):
' deps = { \n '
' " bar " : " /bar " , \n '
' } \n '
' recurse list = [" bar " ] ' )
' recurse deps = { " bar " } ' )
write (
os . path . join ( ' bar ' , ' DEPS ' ) ,
' deps = { \n '
' " baz " : " /baz " , \n '
' } \n '
' recurse list = [" baz " ] ' )
' recurse deps = { " baz " } ' )
write (
os . path . join ( ' baz ' , ' DEPS ' ) ,
' deps = { \n '
@ -720,37 +720,37 @@ class GclientTest(trial_dir.TestCase):
] ,
self . _get_processed ( ) )
def testRecursionOverridesRecurse list ( self ) :
""" Verifies gclient respects |recursion| over |recurse list |.
def testRecursionOverridesRecurse deps ( self ) :
""" Verifies gclient respects |recursion| over |recurse deps |.
| recursion | is set in a top - level DEPS file . That value is meant
to affect how many subdeps are parsed via recursion .
| recurse list | is set in each DEPS file to control whether or not
| recurse deps | is set in each DEPS file to control whether or not
to recurse into the immediate next subdep .
This test verifies that if both syntaxes are mixed in a DEPS file ,
we disable | recurse list | support and only obey | recursion | .
we disable | recurse deps | support and only obey | recursion | .
Since this setting is evaluated per DEPS file , recursed DEPS
files will each be re - evaluated according to the per DEPS rules .
So a DEPS that only contains | recurse list | could then override any
So a DEPS that only contains | recurse deps | could then override any
previous | recursion | setting . There is extra processing to ensure
this does not happen .
For this test to work correctly , we need to use a DEPS chain that
only contains recursion controls in the top DEPS file .
In foo , | recursion | and | recurse list | are specified . When we see
| recursion | , we stop trying to use | recurse list | .
In foo , | recursion | and | recurse deps | are specified . When we see
| recursion | , we stop trying to use | recurse deps | .
There are 2 constructions of DEPS here that are key to this test :
( 1 ) In foo , if we used | recurse list | instead of | recursion | , we
( 1 ) In foo , if we used | recurse deps | instead of | recursion | , we
would also pull in bar . Since bar ' s DEPS doesn ' t contain any
recursion statements , we would stop processing at bar .
( 2 ) In fizz , if we used | recurse list | at all , we should pull in
( 2 ) In fizz , if we used | recurse deps | at all , we should pull in
fuzz .
We expect to keep going past bar ( satisfying 1 ) and we don ' t
@ -768,7 +768,7 @@ class GclientTest(trial_dir.TestCase):
' " bar " : " /bar " , \n '
' } \n '
' recursion = 3 \n '
' recurse list = [" bar " ] ' )
' recurse deps = { " bar " } ' )
write (
os . path . join ( ' bar ' , ' DEPS ' ) ,
' deps = { \n '
@ -784,7 +784,7 @@ class GclientTest(trial_dir.TestCase):
' deps = { \n '
' " fuzz " : " /fuzz " , \n '
' } \n '
' recurse list = [" fuzz " ] ' )
' recurse deps = { " fuzz " } ' )
write (
os . path . join ( ' fuzz ' , ' DEPS ' ) ,
' deps = { \n '
@ -800,11 +800,11 @@ class GclientTest(trial_dir.TestCase):
' svn://example.com/bar ' ,
' svn://example.com/foo/bar ' ,
# Deps after this would have been skipped if we were obeying
# |recurse list |.
# |recurse deps |.
' svn://example.com/foo/bar/baz ' ,
' svn://example.com/foo/bar/baz/fizz ' ,
# And this dep would have been picked up if we were obeying
# |recurse list |.
# |recurse deps |.
# 'svn://example.com/foo/bar/baz/fuzz',
] ,
self . _get_processed ( ) )