[test-results] Unable to run Asterisk TestSuite successfully

Kevin Harwell kharwell at digium.com
Tue Jan 30 15:34:54 CST 2018


Hi,

In the future please post questions with regards to the Asterisk testsuite
either to the asterisk-users *or* asterisk-dev mailing lists. Those lists
are better suited to questions like this. Also more people are probably
subscribed to those lists than this one, so you'll get more exposure on
your question(s).

As far as your question goes try using a non empty "asterisk.conf" file.
You can use the one from the configs/samples directory (from the Asterisk
source top level directory):

cp ./configs/samples/asterisk.conf.sample /etc/asterisk/asterisk.conf

On Tue, Jan 30, 2018 at 2:04 PM, Gunjan Aggarwal <gaggarwal at grammatech.com>
wrote:

> Hi,
>
> I tried to executed Asterisk test suite as mentioned in Asterisk's wiki
> page: https://wiki.asterisk.org/wiki/display/AST/Installing+the+
> Asterisk+Test+Suite
>
> I created an empty file "asterisk.conf" in the /etc/asterisk directory and
> tried to execute test using the command "./runtests.py". But it looks like
> either some dependencies are not met, or if they are met, I get following
> error for that test case:
>
> ```
> --> Running test 'tests/connected_line/subroutine' ...
> Making sure Asterisk isn't running ...
> Making sure SIPp isn't running...
> Running ['tests/connected_line/subroutine/run-test'] ...
> [Jan 30 19:02:28] ERROR[3242]: asterisk.asterisk:912
> _make_directory_structure: Unable to discover dir layout from asterisk.conf
>
> Traceback (most recent call last):
>
>   File "tests/connected_line/subroutine/run-test", line 45, in <module>
>
>     sys.exit(main() or 0)
>
>   File "tests/connected_line/subroutine/run-test", line 34, in main
>
>     test = ConnectedLineTest()
>
>   File "/gt/asterisk/testsuite/testsuite/lib/python/asterisk/test_case.py",
> line 827, in __init__
>
>     self.create_asterisk(count=1, test_config=test_config)
>
>   File "/gt/asterisk/testsuite/testsuite/lib/python/asterisk/test_case.py",
> line 304, in create_asterisk
>
>     self.test_config.get_deps())
>
>   File "/gt/asterisk/testsuite/testsuite/lib/python/asterisk/asterisk.py",
> line 710, in install_configs
>
>     self._make_directory_structure()
>
>   File "/gt/asterisk/testsuite/testsuite/lib/python/asterisk/asterisk.py",
> line 913, in _make_directory_structure
>
>     raise Exception("Unable to discover dir layout from asterisk.conf")
>
> Exception: Unable to discover dir layout from asterisk.conf
>
> ```
>
> Please suggest how to fix this "unable to discover dir layout from
> asterisk.conf" error.
>
> Thanks,
> Gunjan
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/test-results




-- 

Kevin Harwell
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/test-results/attachments/20180130/5532ef34/attachment.html>


More information about the Test-results mailing list