[asterisk-dev] [Code Review] 4270: testsuite: Allow tests to specify multiple minimum versions

Matt Jordan reviewboard at asterisk.org
Sun Dec 21 20:25:20 CST 2014

This is an automatically generated e-mail. To reply, visit:

(Updated Dec. 21, 2014, 8:25 p.m.)


This change has been marked as submitted.

Review request for Asterisk Developers.


Committed in revision 6127

Repository: testsuite


Prior to this patch, a test could only provide a single required minimum version of Asterisk. This doesn't bode well for tests that have been added due to bugs, which typically require a minimum version for each active branch of Asterisk. Not allowing multiple minimum versions to be specified would result in the test being erroneously executed for higher branches of Asterisk, resulting in false test failures.

Take, for example, tests/channels/SIP/no_ack_dialog_cleanup. This test was added for ASTERISK-20784, the fix of which was released in, 11.14.0, 12.7.0, and 13.0.0-beta3. Because only a single version could be specified, however, the best the test writer could do was provide the 1.8 version:

   minversion: ''

This would prevent from running against the test, but 11.13.0 would execute the test, as it is greater than the supplied minversion of

However, if we specify a list of minversions:

  minversion: ['', '11.14.0', '12.7.0', '13.0.0-beta3']

Then we can determine that 11.13.0 is less than 11.14.0, and prevent the test from running.


  /asterisk/trunk/tests/channels/SIP/no_ack_dialog_cleanup/test-config.yaml 6106 
  /asterisk/trunk/tests/channels/SIP/invite_retransmit/test-config.yaml 6106 
  /asterisk/trunk/runtests.py 6105 
  /asterisk/trunk/lib/python/asterisk/test_config.py 6105 

Diff: https://reviewboard.asterisk.org/r/4270/diff/


Tested that:, 11.6-cert (branch), 11.6-cert8, and 13.0.0-beta2 won't run the two tests modified in this patch, 11.14.0, 13 (branch) will run the two tests modified in this patch
Versions outputted from the '-l' option appear to be correct for all versions listed above


Matt Jordan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20141222/4f0b5939/attachment.html>

More information about the asterisk-dev mailing list