#NEWLINE# def run( self ) : #NEWLINE# #INDENT# tempFileTree = TempFileTree ( os . path . join ( self . getGlobalTempDir ( ) , getRandomAlphaNumericString ( ) ) ) #NEWLINE# fileTreeRootFile = tempFileTree . getTempFile ( ) #NEWLINE# makeFileTree ( fileTreeRootFile , self . depth , tempFileTree ) #NEWLINE# treePointer = tempFileTree . getTempFile ( ) #NEWLINE# makeTreePointer ( fileTreeRootFile , treePointer ) #NEWLINE# logger . info ( "We've set up the file tree" ) #NEWLINE# if ( random . random ( ) > 0.5 ) : #NEWLINE# #INDENT# raise RuntimeError ( ) #NEWLINE# #UNINDENT# self . addChildTarget ( ChildTarget ( treePointer ) ) #NEWLINE# self . setFollowOnTarget ( DestructFileTree ( tempFileTree ) ) #NEWLINE# logger . info ( "We've added the child target and finished SetupFileTree.run()" )