Example #1
0
 def testSplitMapOption(self):
     """
 FIXME
 """
     try:
         utils.testFileIsWritable(self.splitMapFilename())
     except AssertionError, exception:
         raise
Example #2
0
  def setLogFilename(self,
         filename):
    """
    Sets the name of the log file to use.

    If called, this function must be called before tasks are added.

    @param filename: Name of the log file.
    @type filename: string
    """
    assert self.nrTasks() == 0

    if os.path.exists(filename):
      os.remove(filename)

    utils.testFileIsWritable(filename)
    self.__logFilename = os.path.abspath(filename)