1. petsc
  2. PETSc
  3. petsc

Commits

Matt Knepley  committed b49986f

Builder: Do not fail if string replacement does

  • Participants
  • Parent commits be6d3f4
  • Branches master

Comments (0)

Files changed (1)

File config/builder.py

View file
  • Ignore whitespace
 
  def getTestCommand(self, executable, **params):
    numProcs = params.get('numProcs', 1)
-   args     = params.get('args', '') % dict(meshes=os.path.join(self.petscDir,'share','petsc','datafiles','meshes'))
+   try:
+     args   = params.get('args', '') % dict(meshes=os.path.join(self.petscDir,'share','petsc','datafiles','meshes'))
+   except ValueError:
+     args   = params.get('args', '')
    hosts    = ','.join(['localhost']*int(numProcs))
    return ' '.join([self.configInfo.mpi.mpiexec, '-hosts', hosts, '-n', str(numProcs), os.path.abspath(executable), args])