diff options
author | John Szakmeister <john@szakmeister.net> | 2014-04-20 09:45:52 -0400 |
---|---|---|
committer | John Szakmeister <john@szakmeister.net> | 2014-04-20 09:45:52 -0400 |
commit | ac9cc08e1a95e5614c8f9863091014186edecbdd (patch) | |
tree | 89985902239655c01291c8341b2ba619ed7c9325 | |
parent | ad0b664d4197f1200c00fe4f729dac36ccbd90f7 (diff) | |
download | nose-ac9cc08e1a95e5614c8f9863091014186edecbdd.tar.gz |
Fix #779: xunit report file is written in --where directory
Since the creation of the file has been delayed, we need the full path
to the file since --where will change our current working directory.
-rw-r--r-- | nose/plugins/xunit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nose/plugins/xunit.py b/nose/plugins/xunit.py index d0aed88..e1ec0e1 100644 --- a/nose/plugins/xunit.py +++ b/nose/plugins/xunit.py @@ -187,7 +187,7 @@ class Xunit(Plugin): 'skipped': 0 } self.errorlist = [] - self.error_report_file_name = options.xunit_file + self.error_report_file_name = os.path.realpath(options.xunit_file) def report(self, stream): """Writes an Xunit-formatted XML file |