Skip to content
This repository
Browse code

remove test results file to make jenkins happy

  • Loading branch information...
commit 7da4e9dc0cfe9454a81a54fdc3ef000528af3554 1 parent 5f85722
Burak Arslan authored March 30, 2013

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  setup.py
5  setup.py
@@ -73,7 +73,10 @@ def call_pytest(*tests):
73 73
     global _ctr
74 74
     import pytest
75 75
     _ctr += 1
76  
-    return call_test(pytest.main, ['-v', '--tb=short', '--junitxml=test_result.%d.xml' % _ctr], tests)
  76
+    file_name = 'test_result.%d.xml' % _ctr
  77
+    if os.path.isfile(file_name):
  78
+        os.unlink(file_name)
  79
+    return call_test(pytest.main, ['-v', '--tb=short', '--junitxml=%s' % file_name], tests)
77 80
 
78 81
 
79 82
 def call_trial(*tests):

0 notes on commit 7da4e9d

Please sign in to comment.
Something went wrong with that request. Please try again.