If you try return simpletest as module to be enabled as part of install profile, then there is an error reported on installation while simpletest.install is checking requirements. simpletest_requirements function assumed drupal_get_path can be called but database is not initialized yet.
Attached patch avoids calling drupal_get_path
I realize drupal trunk, this is no longer relevant.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | simpletest-install-1.patch | 863 bytes | pwolanin |
| simpletest-check-requirements-on-install-profile.patch | 715 bytes | dlhubler |
Comments
Comment #1
pwolanin commentedI independently found essentially the same solution. I'm not sure if it matters, but this patch only uses the PHP dirname() if the call to druapl_get_path() does not return a result.
Comment #2
pwolanin commentedComment #3
cwgordon7 commentedLooks good. Works on a fresh install with an altered profile.
Comment #4
cwgordon7 commented(RTBC @ #1)
Comment #5
pwolanin commentedSince either patch will work, I think the choice is just a matter of taste.
Comment #6
boombatower commentedCommitted.
Thanks everyone.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.