On Fri, May 25, 2012 at 9:14 AM, Anders Logg <[email protected]> wrote: > There is also dolfin_utils.commands.getstatusoutput. Is it the same?
Yes, they are equal. > Do we need two replacements for getstatusoutput? No, we could use instant.get_status_output in DOLFIN instead. Johannes > -- > Anders > > > ---------- Forwarded message ---------- > From: [email protected] > To: Anders Logg <[email protected]> > Cc: > Date: Wed, 23 May 2012 13:26:10 -0000 > Subject: [Branch ~syfi-core/fenics-syfi/main] Rev 561: Use > instant.get_status_output instead of commands.getstatusoutput. > ------------------------------------------------------------ > revno: 561 > committer: Johannes Ring <[email protected]> > branch nick: trunk > timestamp: Wed 2012-05-23 15:22:29 +0200 > message: > Use instant.get_status_output instead of commands.getstatusoutput. > modified: > tests/python/run_tests.py > > > -- > lp:fenics-syfi > https://code.launchpad.net/~syfi-core/fenics-syfi/main > > Your team SyFi Core Team is subscribed to branch lp:fenics-syfi. > To unsubscribe from this branch go to > https://code.launchpad.net/~syfi-core/fenics-syfi/main/+edit-subscription > > === modified file 'tests/python/run_tests.py' > --- tests/python/run_tests.py 2012-05-23 10:47:30 +0000 > +++ tests/python/run_tests.py 2012-05-23 13:22:29 +0000 > @@ -1,7 +1,8 @@ > #!/usr/bin/env python > -import commands, sys > -s, o = commands.getstatusoutput("rm -rf .test/") > -s, o = commands.getstatusoutput("python test.py") > +import sys > +import instant > +s, o = instant.get_status_output("rm -rf .test/") > +s, o = instant.get_status_output("python test.py") > if s != 0: > f = open('python_tests.log', 'w') > f.write(o) > > > _______________________________________________ > Mailing list: https://launchpad.net/~dolfin > Post to : [email protected] > Unsubscribe : https://launchpad.net/~dolfin > More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : [email protected] Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp

