]> 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:51 +0000 (10:03 -0500)
commit8ff3435c8a2a13e7ec298d47884845eeffd72dda
tree0c570171ff196359d18f0f71534e0b5305586633
parentfc82312aab06c0844c813d319a0b7a4abd8cec4a
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