]> git.ipfire.org Git - thirdparty/asterisk.git/commit
CI: Allow runUnittests to use 'expect' to run the tests
authorGeorge Joseph <gjoseph@digium.com>
Thu, 15 Nov 2018 17:41:44 +0000 (10:41 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Fri, 16 Nov 2018 15:03:43 +0000 (10:03 -0500)
commit7ba8f32632b938040d97fdff1f60481b76eab93f
tree4ca8769ed354e9ee1282c6301ff4bed4d994349c
parent6e1471c0b29970f7dce23b12fcaefa4f66e95bf6
CI: Allow runUnittests to use 'expect' to run the tests

There seems to be a race condition between starting the asterisk
daemon and attempting to use 'asterisk -r' that can cause the
control socket file to not be created.  Since all of the Jenkins
slaves have 'expect' installed, the runUnittests script can use
it to start asterisk in the forground and issue the commands
interactively.  This is much more reliable and it can also make
startup errors more visible since they'll be in the Jenkins console
output.

If 'expect' isn't installed, the original daemon/asterisk -r
process is used.

Also added a "core show settings" before running the tests
and added "notice,warning,error" to the console log.

Change-Id: Idd656085f854afede813ac241b9e312b31358160
tests/CI/runUnittests.sh