def test_DoFunctionOnEntryList(self):
     cingDirTmpTest = os.path.join( cingDirTmp, getCallerName() )
     mkdirs( cingDirTmpTest )
     self.failIf(os.chdir(cingDirTmpTest), msg =
         "Failed to change to test directory for files: " + cingDirTmpTest)
     entryListFileName = 'entryListFileName.csv'
     writeTextToFile(entryListFileName, '\n'.join('0.1 0.2'.split()))
     doFunctionOnEntryList(sleepy, entryListFileName)        
Example #2
0
 def test_DoFunctionOnEntryList(self):
     cingDirTmpTest = os.path.join(cingDirTmp, getCallerName())
     mkdirs(cingDirTmpTest)
     self.failIf(os.chdir(cingDirTmpTest),
                 msg="Failed to change to test directory for files: " +
                 cingDirTmpTest)
     entryListFileName = 'entryListFileName.csv'
     writeTextToFile(entryListFileName, '\n'.join('0.1 0.2'.split()))
     doFunctionOnEntryList(sleepy, entryListFileName)
Example #3
0
def generateHeatRun():
    """
    Produce heat for 8 hours
    """
    ncpus = detectCPUs()
    doFunctionOnEntryList(generateHeat,
                        entryListFileName = None,
                        entryList = range(ncpus),
                        processes_max = ncpus,
                        max_time_to_wait = 8 * 60 * 60)
Example #4
0
def generateHeatRun():
    """
    Produce heat for 8 hours
    """
    ncpus = detectCPUs()
    doFunctionOnEntryList(generateHeat,
                          entryListFileName=None,
                          entryList=range(ncpus),
                          processes_max=ncpus,
                          max_time_to_wait=8 * 60 * 60)