Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpletest verbose directory is not properly created #56

Open
kenorb opened this issue Nov 19, 2012 · 0 comments
Open

Simpletest verbose directory is not properly created #56

kenorb opened this issue Nov 19, 2012 · 0 comments

Comments

@kenorb
Copy link

kenorb commented Nov 19, 2012

Drupal bug: http://drupal.org/node/943572

Latest Drupal code:
http://drupalcode.org/project/simpletest.git/blob/refs/heads/6.x-2.x:/drupal_web_test_case.php#l3108

Patch for Pressflow 6.26

Index: modules/simpletest/drupal_web_test_case.php
===================================================================
--- modules/simpletest/drupal_web_test_case.php (revision 7131)
+++ modules/simpletest/drupal_web_test_case.php (working copy)
@@ -2624,10 +2624,12 @@
   if ($original_file_directory) {
     $file_directory = $original_file_directory;
     $class = $test_class;
-    $verbose = variable_get('simpletest_verbose', FALSE);
-    $directory = $file_directory . '/simpletest/verbose';
-//    return file_prepare_directory($directory, FILE_CREATE_DIRECTORY);
-    return file_check_directory($directory, FILE_CREATE_DIRECTORY);
+    $verbose = variable_get('simpletest_verbose', TRUE);
+    $directory = $file_directory . '/simpletest';
+    file_check_directory($directory, FILE_CREATE_DIRECTORY);
+    $directory = $directory . '/verbose';
+    $writable = file_check_directory($directory, FILE_CREATE_DIRECTORY);
+    return $writable;
   }
   return FALSE;
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant