#NEWLINE# @ testhelp . context ( 'fileoverlap' ) #NEWLINE# def testSharedIntialContents( self ) : #NEWLINE# #INDENT# foo = self . addComponent ( 'foo:runtime' , fileContents = [ ( '/ic' , RegF ( contents = 'hello' , initialContents = True ) ) ] ) #NEWLINE# bar = self . addComponent ( 'bar:runtime' , fileContents = [ ( '/ic' , RegF ( contents = 'world' , initialContents = True ) ) ] ) #NEWLINE# self . updatePkg ( 'foo:runtime' ) #NEWLINE# self . updatePkg ( 'bar:runtime' ) #NEWLINE# self . checkOwners ( '/ic' , [ foo , bar ] ) #NEWLINE# self . resetRoot ( ) #NEWLINE# self . updatePkg ( [ 'foo:runtime' , 'bar:runtime' ] ) #NEWLINE# self . checkOwners ( '/ic' , [ foo , bar ] ) #NEWLINE# self . resetRoot ( ) #NEWLINE# self . updatePkg ( [ 'foo:runtime' , 'bar:runtime' ] , justDatabase = True ) #NEWLINE# self . checkOwners ( '/ic' , [ foo , bar ] ) #NEWLINE# groupRecipe = "\nclass GroupConflicts(GroupRecipe):\n    name = 'group-dist'\n    version = '1.0'\n    clearBuildRequires()\n    autoResolve = False\n\n    def setup(r):\n        r.VersionConflicts(exceptions = 'group-dist')\n        r.add('foo:runtime')\n        r.add('bar:runtime')\n" #NEWLINE# ( built , d ) = self . buildRecipe ( groupRecipe , 'GroupConflicts' )