[Asterisk-code-review] audio analyzer: Don't wrap tones in " (testsuite[13])

Joshua C. Colp asteriskteam at digium.com
Thu Feb 21 10:16:25 CST 2019


Joshua C. Colp has uploaded this change for review. ( https://gerrit.asterisk.org/11027


Change subject: audio_analyzer: Don't wrap tones in "
......................................................................

audio_analyzer: Don't wrap tones in "

The tone URI scheme does not require wrapping
the tones in ". Doing so causes a parsing failure
in Asterisk, resulting in failure.

Change-Id: Ic4bce9285e2e437ad0ae752aaf4be5220b7e3f50
---
M tests/codecs/audio_analyzer.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/27/11027/1

diff --git a/tests/codecs/audio_analyzer.py b/tests/codecs/audio_analyzer.py
index e656777..c897c45 100644
--- a/tests/codecs/audio_analyzer.py
+++ b/tests/codecs/audio_analyzer.py
@@ -41,7 +41,7 @@
         for t in test_object.tones:
             tones += str(t['frequency']) + '/' + str(t['duration']) + ','
             duration += t['duration']
-        return ('tone:\"' + tones.rstrip(',') + '\"', duration / 1000)
+        return ('tone:' + tones.rstrip(','), duration / 1000)
 
     return __get_playback_file() if test_object.playback_file else __get_tones()
 

-- 
To view, visit https://gerrit.asterisk.org/11027
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: testsuite
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic4bce9285e2e437ad0ae752aaf4be5220b7e3f50
Gerrit-Change-Number: 11027
Gerrit-PatchSet: 1
Gerrit-Owner: Joshua C. Colp <jcolp at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190221/dd73d30e/attachment.html>


More information about the asterisk-code-review mailing list