+2010-10-04 Dirk Pranke <dpranke@chromium.org>
+
+ Unreviewed, build fix.
+
+ r69065 broke test-webkitpy by trying to create a '/tmp-X' directory,
+ which can't always be done. This test uses tempfile.mkdtemp(), which
+ should be safe.
+
+ * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
+
2010-10-04 Dirk Pranke <dpranke@chromium.org>
Unreviewed, build fix.
import logging
import os
import Queue
+import shutil
import sys
import tempfile
import thread
# We run a configuration that should fail, to generate output, then
# look for what the output results url was.
- res, out, err, user = logging_run(['--results-directory=/tmp-results'],
+ tmpdir = tempfile.mkdtemp()
+ res, out, err, user = logging_run(['--results-directory=' + tmpdir],
tests_included=True)
- self.assertEqual(user.url, '/tmp-results/results.html')
+ self.assertEqual(user.url, os.path.join(tmpdir, 'results.html'))
+ shutil.rmtree(tmpdir, ignore_errors=True)
def test_results_directory_default(self):
# We run a configuration that should fail, to generate output, then