Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
file system
Priority:
Critical
Category:
Bug report
Reporter:
Anonymous (not verified)
Created:
2 Mar 2009 at 22:37 UTC
Updated:
21 Sep 2021 at 20:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Anonymous (not verified) commentedwoops, that was buggy, better one coming soon.
Comment #3
Anonymous (not verified) commentedfixed the bug in my last patch.
Comment #4
c960657 commenteddrupalGetTestFiles() has an argument for requesting files of a specific size. Perhaps that would be cleaner?
Comment #5
Anonymous (not verified) commentedYes, that sounds much better - will reroll shortly
Comment #6
Anonymous (not verified) commentedhmm, the second param to drupalGetTestFiles requires knowing the size in bytes of the file that you want returned, which feels a bit too fragile to me, so i think i'll leave it as is.
Comment #7
drewish commentedsubscribing.
Comment #8
Anonymous (not verified) commented#391210: add drupalGetTestFile method to drupal_web_test_case just noting this related issue i opened.
Comment #9
drewish commentedi think that:
might be a much simpler way to achieve this.
Comment #10
c960657 commentedI added drewish's suggested fix to the patch for a related issue, #395228: Wrong sorting in drupalGetTestFiles().
Comment #11
c960657 commentedThe patch for #395228: Wrong sorting in drupalGetTestFiles() was just committed. I believe this also fixes this issue.
Comment #12
Anonymous (not verified) commentedfair enough, though i still think this is brittle. i don't think we should have tests rely on the sort order of the test files. if that breaks/changes, then tests can break again.