From 2302a43d54d97ddac4ef6b78002b521af7edc0dd 2012-01-24 21:23:58 From: Thomas Kluyver Date: 2012-01-24 21:23:58 Subject: [PATCH] Pass subprocess test runners a suitable location for xunit output. --- diff --git a/IPython/testing/iptest.py b/IPython/testing/iptest.py index bc94a3d..1a9172d 100644 --- a/IPython/testing/iptest.py +++ b/IPython/testing/iptest.py @@ -284,6 +284,11 @@ class IPTester(object): # Assemble call self.call_args = self.runner+self.params + + print self.call_args + if '--with-xunit' in self.call_args: + sect = [p for p in self.params if p.startswith('IPython')][0] + self.call_args.append('--xunit-file=%s' % path.abspath(sect+'.xunit.xml')) # Store pids of anything we start to clean up on deletion, if possible # (on posix only, since win32 has no os.kill)