Commit 95a0f85a authored by webchick's avatar webchick
Browse files

#663992 by sun and carlos8f: Quit caching verbose testing debug output.

parent b8f20997
......@@ -1426,7 +1426,7 @@ protected function drupalGet($path, array $options = array(), array $headers = a
$this->refreshVariables(); // Ensure that any changes to variables in the other thread are picked up.
// Replace original page output with new output from redirected page(s).
if (($new = $this->checkForMetaRefresh())) {
if ($new = $this->checkForMetaRefresh()) {
$out = $new;
}
$this->verbose('GET request to: ' . $path .
......@@ -1501,7 +1501,7 @@ protected function drupalPost($path, $edit, $submit, array $options = array(), a
$submit_matches = FALSE;
$ajax = is_array($submit);
if (isset($path)) {
$html = $this->drupalGet($path, $options);
$this->drupalGet($path, $options);
}
if ($this->parse()) {
$edit_save = $edit;
......@@ -1554,7 +1554,7 @@ protected function drupalPost($path, $edit, $submit, array $options = array(), a
$this->refreshVariables();
// Replace original page output with new output from redirected page(s).
if (($new = $this->checkForMetaRefresh())) {
if ($new = $this->checkForMetaRefresh()) {
$out = $new;
}
$this->verbose('POST request to: ' . $path .
......@@ -2725,7 +2725,11 @@ function simpletest_verbose($message, $original_file_directory = NULL, $test_cla
$class = $test_class;
$verbose = variable_get('simpletest_verbose', FALSE);
$directory = $file_directory . '/simpletest/verbose';
return file_prepare_directory($directory, FILE_CREATE_DIRECTORY);
$writable = file_prepare_directory($directory, FILE_CREATE_DIRECTORY);
if ($writable && !file_exists($directory . '/.htaccess')) {
file_put_contents($directory . '/.htaccess', "<IfModule mod_expires.c>\nExpiresActive Off\n</IfModule>\n");
}
return $writable;
}
return FALSE;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment