Subversion Repositories slepc-dev

Rev

Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1232 Rev 1238
Line 27... Line 27...
  os.chdir('config')
  os.chdir('config')
  cfile = open('checklink.c','w')
  cfile = open('checklink.c','w')
  cfile.write(code)
  cfile.write(code)
  cfile.close()
  cfile.close()
  (result, output) = commands.getstatusoutput(petscconf.MAKE + ' checklink TESTFLAGS="'+str.join(' ',flags)+'"')
  (result, output) = commands.getstatusoutput(petscconf.MAKE + ' checklink TESTFLAGS="'+str.join(' ',flags)+'"')
 
  if os.path.exists('checklink.o'):
 
    os.unlink('checklink.o')
  os.chdir(os.pardir)
  os.chdir(os.pardir)
  if result:
  if result:
    return (0,code + output)
    return (0,code + output)
  else:
  else:
    return (1,code + output)  
    return (1,code + output)