Like #368502: File naming test sometimes fails, seemingly randomly the testing bot reports an exception in the "Field form tests" in field.test. See for example http://testing.drupal.org/pifr/file/1/3831 which is entirely unrelated.

I thought it was down to one slave, but it spans several.

In the file.test problem, it seems that was related to using randomName(). Not sure if the same thing is happening here though.

Anyway, this is sapping away developer confidence in the bot so it should be fixed ASAP.

CommentFileSizeAuthor
#7 field_fix_tests-371363-6.patch4.93 KByched
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

I there a way to know which exact test failed in the example you provide ?

catch’s picture

It might be possible for someone with access to the testing slaves, but it's not via the existing test bot UI. (subscribing).

catch’s picture

I've switched the test bot off.

Had a quick look through the test - should use drupal_strotolower() instead of strtolower() didn't spot anywhere else obvious.
#371422: field form test should use drupal_strtolower()

bjaspan’s picture

Probably unrelated, but I've noticed that the field form tests always fail for me when run from the command line, but not from the UI. I suspect the cause is that my base URL has a port number, e.g. http://head.local:8888. Somehow, the command line is not using the port number.

webchick’s picture

Well the test bot does run all tests from the command line, so that's possibly related. It's not doing so on an alternate port, however.

yched’s picture

re #1 - Berdir posted this on IRC : http://dev.worldempire.ch/fieldformtestfail.png

yched’s picture

Status: Active » Needs review
FileSize
4.93 KB

Doh. Field_test fields are considered empty if empty($value), so the tests break when the random assigned value is 0...
Attached patch uses rand(1, 127) instead of rand(0, 127).

chx’s picture

Status: Needs review » Reviewed & tested by the community

Congrats!

alexanderpas’s picture

nice work!

webchick’s picture

Status: Reviewed & tested by the community » Fixed

YES!!

Thanks SO much, yched!! :D

Committed to HEAD! Switching testing bot back on momentarily.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.