Closed (fixed)
Project:
DrupalCI: Test Runner
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2012 at 05:57 UTC
Updated:
1 May 2015 at 19:54 UTC
Jump to comment: Most recent
See http://qa.drupal.org/pifr/test/193544
zencoderapi is a submodule of the video module. I have the following code in setUp():
$this->assertTrue(module_enable(array('video'), TRUE), t('Enabled modules: %modules', array('%modules' => 'video')));
$this->assertTrue(module_enable(array('zencoderapi'), TRUE), t('Enabled modules: %modules', array('%modules' => 'zencoderapi')));
$this->assertTrue(module_enable(array('node'), TRUE), t('Enabled modules: %modules', array('%modules' => 'node')));
For some reason, the second module_enable() fails. Locally, this works, even when using run-tests.sh.
Comments
Comment #1
rfayThe problem here is that the dependency generation does not support versioned dependencies.
You have
If I'm not mistaken, that's wrong anyway (should be 7.x-2.x). but regardless, Project Dependency can't handle it. See #1351744: Respect versioned dependencies and soft dependencies
Thanks,
-Randy
Comment #2
Jorrit commentedThe manual at http://drupal.org/node/542202 specifies that just 2.x is sufficient:
Specifying the core version is a bit pointless, you can't depend on a version with a different core version.
What is your suggestion for the dependency string? I want users to use version 2 of the libraries module, it doesn't matter which specific one. According to the docs, I am doing it right:
Comment #3
jthorson commentedThe dependency string in the info file is used for dependency calculations when installing the various modules ... unfortunately, the testbot's dependency calculation (using project_dependency) does not pay attention to it, as per #1351744: Respect versioned dependencies and soft dependencies.
Comment #4
isntall commentedComment #5
jthorson commentedThis should now be fine ... versioned dependencies has been in project_dependency for a while.