def setUp(self): j = Job(application=DaVinci(), backend=Dirac()) j.prepare() from Ganga.Utility.Config import getConfig if getConfig("Output")["ForbidLegacyInput"]: j.inputfiles = [LocalFile(namePattern="dummy.in")] else: j.inputsandbox = [File(name="dummy.in")] j.outputfiles = ["dummy1.out", "dummy2.out", "dummy3.out"] self.j = j self.app = j.application._impl from GangaLHCb.test import getDiracAppPlatform self.app.platform = getDiracAppPlatform() # self.extra = GaudiExtras() # self.extra.master_input_buffers['master.buffer'] = '###MASTERBUFFER###' # self.extra.master_input_files = [File(name='master.in')._impl] # self.extra.input_buffers['subjob.buffer'] = '###SUBJOBBUFFER###' self.input_files = [ File(name="subjob.in"), File(FileBuffer("subjob.buffer", "###SUBJOBBUFFER###").create().name), ] self.appmasterconfig = StandardJobConfig( inputbox=[File(name="master.in"), File(FileBuffer("master.buffer", "###MASTERBUFFER###").create().name)] ) # self.extra.outputsandbox = ['dummy1.out','dummy2.out','dummy3.out'] self.rth = LHCbGaudiDiracRunTimeHandler()
def setUp(self): j = Job(application=DaVinci(), backend=Dirac()) j.prepare() from Ganga.Utility.Config import getConfig if getConfig('Output')['ForbidLegacyInput']: j.inputfiles = [LocalFile(namePattern='dummy.in')] else: j.inputsandbox = [File(name='dummy.in')] j.outputfiles = ['dummy1.out', 'dummy2.out', 'dummy3.out'] self.j = j self.app = j.application._impl from GangaLHCb.test import getDiracAppPlatform self.app.platform = getDiracAppPlatform() #self.extra = GaudiExtras() # self.extra.master_input_buffers['master.buffer'] = '###MASTERBUFFER###' #self.extra.master_input_files = [File(name='master.in')._impl] # self.extra.input_buffers['subjob.buffer'] = '###SUBJOBBUFFER###' self.input_files = [ File(name='subjob.in'), File( FileBuffer('subjob.buffer', '###SUBJOBBUFFER###').create().name) ] self.appmasterconfig = StandardJobConfig(inputbox=[ File(name='master.in'), File( FileBuffer('master.buffer', '###MASTERBUFFER###').create().name) ]) #self.extra.outputsandbox = ['dummy1.out','dummy2.out','dummy3.out'] self.rth = LHCbGaudiDiracRunTimeHandler()
def test_outputfiles_submit(self): j = Job(application=DaVinci(), backend=Dirac()) j.application.platform = getDiracAppPlatform() j.outputfiles = [LocalFile('Something.root')] j.submit() j.kill()