[asterisk-bugs] [JIRA] (ASTERISK-25225) testsuite: lua tests using SIPp cannot run on Jenkins

Walter Doekes (JIRA) noreply at issues.asterisk.org
Thu Jul 2 04:44:33 CDT 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=226770#comment-226770 ] 

Walter Doekes commented on ASTERISK-25225:
------------------------------------------

Alternate fixes:

Supply a TERM value when starting asttest in all 4 tests.

Example:
{noformat}
--- tests/channels/SIP/rfc2833_dtmf_detect/run-test	(revision 5649)
+++ tests/channels/SIP/rfc2833_dtmf_detect/run-test	(working copy)
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
 set -e
 
-asttest -a /$AST_TEST_ROOT -s tests/channels/SIP/rfc2833_dtmf_detect
+TERM=dumb asttest -a /$AST_TEST_ROOT -s tests/channels/SIP/rfc2833_dtmf_detect
 
{noformat}

Or using SIPp which supports running without a terminal.
https://github.com/SIPp/sipp/commit/c2381c87f41e5727904f79143935e71ebf117e91

> testsuite: lua tests using SIPp cannot run on Jenkins
> -----------------------------------------------------
>
>                 Key: ASTERISK-25225
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25225
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Tests/testsuite
>            Reporter: Matt Jordan
>
> Running any one of the following four tests fails on the Jenkins build agents:
> # SIP/rfc2833_dtmf_detect
> # SIP/sip_channel_params
> # SIP/tcpauthlimit
> # SIP/tcpauthtimeout
> This is because Jenkins build agents are not a big fan of processes trying to open a terminal:
> {noformat}
>       Running ['tests/channels/SIP/rfc2833_dtmf_detect/run-test'] ...
> error while executing sipp/register.xml sipp scenario (sipp exited with status 1)
> Error opening terminal: unknown.
> error running test
> {noformat}
> The Python tests work around this by spawning a process inside a virtual terminal:
> {code}
>         reactor.spawnProcess(self._process,
>                              sipp_args[0],
>                              sipp_args,
>                              {"TERM": "vt100", },
>                              None,
>                              None)
> {code}
> Hence, porting those tests from lua to Python would magifix the problem.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list