]> 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:25 +0000 (08:03 -0700)
commit97633c09c52b1541a1c98d7c52f714b39b28e8af
tree4caa43b93c0667abb19d951a1025d2ffa03409d9
parente691f9fab25a544ccd9691a6effa5e07652c6b6b
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