[devtools] "Keep" some temporary files/dirs around to help with debugging
The whole QUnitTestCase runs with an @with_tempdir so it's redundant
anyway.
--- a/devtools/qunit.py Fri Aug 01 19:28:44 2014 +0200
+++ b/devtools/qunit.py Mon Sep 01 10:22:46 2014 +0200
@@ -84,7 +84,6 @@
def __del__(self):
self.stop()
- rmtree(self._profile_dir)
class QUnitTestCase(CubicWebServerTC):
@@ -140,7 +139,7 @@
# generate html test file
jquery_dir = 'file://' + self.config.locate_resource('jquery.js')[0]
- html_test_file = NamedTemporaryFile(suffix='.html')
+ html_test_file = NamedTemporaryFile(suffix='.html', delete=False)
html_test_file.write(make_qunit_html(test_file, depends,
base_url=self.config['base-url'],
web_data_path=jquery_dir))