Reviewed & tested by the community
Project:
SimpleTest automator
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2008 at 20:27 UTC
Updated:
14 Nov 2018 at 15:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ryan_courtnage commentedI can duplicated this with the DRUPAL-6--1 branch. Fortunately i had a database backup.
All the modules are enabled with the following call on line 405 of simpletest_automator.module:
Comment #2
kenorb commentedI've got the same problem.
It enabled my all modules which were disabled, even those which were invalid causing WSOD and breaking the website.
Tested with latest dev.
Fortunately I had a database backup as well.
Comment #3
kenorb commentedComment #4
kenorb commentedRemoving this line helps.
Comment #5
cwgordon7 commentedHm, we need to enable the modules to get their permissions I guess... but perhaps we've forgotten to disable them afterwards? I don't think removing that line is the solution.
Comment #6
kenorb commented1. Why not to invoke hook_perm from all active modules?
2. Or drupal_get_form of permission table (user_admin_perm)?
3. Or to read permission list from permission table based on specified roles which can be changed of course.
4. Or something similar to user_admin_perm()
Because nobody want to test some permission from inactive module.
Comment #7
cwgordon7 commentedRight, but modules may have been enabled for SimpleTest automator that currently are not enabled on the site, so we're going to need to do some trickery here, I believe. I need to look more closely at the code.
Comment #8
kenorb commentedany news?
sorry, but I don't know even what this code is trying to do.
why activating all the module on the Drupal installation is needed again?
if somebody need some additional permission, he can activate the module by him-self manually.
Comment #9
kenorb commentedIf you have better solution, please commit the critical bug fix first, and then you can commit some changes, because currently this module breaks the whole website completely.
If you don't have time, please assign me to CVS access.
Comment #10
matt v. commentedIn case anyone else is still following along, the version in this commit (just a couple of commits back), is functional. I haven't tested it extensively, but I was able to generate some basic tests without having the rename a bunch of the generated function names, as I had to with the 6.x-1.0-beta2 version. Also, it does not exhibit the bug mentioned here where all modules get enabled.
The one minor issue I did notice when recording tests was that clicking on the "Stop automator" link also prompted me to choose whether I wanted that link text added to the test. I would assume that removing the event from that link shouldn't be too difficult, but I haven't looked into that yet.
Comment #11
kenorb commentedComment #12
kenorb commented