Needs work
Project:
Project Issue File Review
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2011 at 19:50 UTC
Updated:
14 Dec 2011 at 21:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
rfayHere's a first shot. Think I got everything.
Comment #2
rfayThis one is tested and seems to work OK
Comment #3
rfayMissed a few.
I think I'll leave the 'pifr_checkout' key in the $databases as is, and also the $this->checkout_directory
They make sense and don't cause a lot of trouble.
Comment #4
bfroehle commentedPlease note that several modules, including simpletest_example, test to see if they are running on Drupal testbots by looking for the 'checkout' directory.
Since this rename will break their functionality, it'd be nice to include a more resilient way to test for it...
Comment #5
rfayThanks for pointing out about simpletest_example. That's a huge hack I did a long time ago.
Do you have a suggestion how we can do it? I think that's a great thing to add to this. Something like setting a variable that says "Simpletest is testing us"?
Comment #6
bfroehle commentedSadly I have no idea how it should be done.
Comment #7
rfayDoesn't apply any more.
Hoping I'll have the guts to do this sometime, even though it breaks a lot of existing docs.
Comment #8
bfroehle commentedI'd suggest that any change here comes after the introduction of a corresponding DrupalWebTestCase method to determine if the test is running on qa.drupal.org -- for the reasons above that we sometimes need to alter test cases for specific testing environments.
Comment #9
rfayI like that. What would the appropriate strategy be, considering that DrupalWebTestCase is a core Drupal idea? Should we provide a function or something and do an if (function_exists(running_on_test_bot) && running_on_testbot()) ?
Edit... And since the actual functions available when running on the testbot are only Drupal's (plus any contrib) and not the PIFR functions or anything, this becomes harder. I think we'd have to rely on some marker (like the checkout directory currently). If (file_exists('/var/cache/iamatestbot')) ???
Comment #10
bfroehle commentedWithout worrying about implementation details, what would the end-user API be?