<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9090">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Avoid KeyError when astdatadir not set in asterisk.conf.<br><br>Closes asterisk/testsuite#1<br>ASTERISK-27894<br>Reported by: Jaco Kroon, Colin Sung<br><br>Change-Id: Ie5f7a78afe913567966a520ba2c87ad8af6f17f6<br>---<br>M runtests.py<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/90/9090/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/runtests.py b/runtests.py<br>index 8089387..1351a3c 100755<br>--- a/runtests.py<br>+++ b/runtests.py<br>@@ -65,7 +65,7 @@<br> # astdatadir/third-party/pjproject directory to sys.path<br> # so pjsua can be found.<br> ast_config = test_suite_utils.get_asterisk_conf()<br>-astdatadir = ast_config.directories["astdatadir"] or '/var/lib/asterisk'<br>+astdatadir = ast_config.directories.get("astdatadir", '/var/lib/asterisk')<br> if astdatadir[0] == os.path.sep:<br> astdatadir = astdatadir[1:]<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9090">change 9090</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/9090"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 13.21 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ie5f7a78afe913567966a520ba2c87ad8af6f17f6 </div>
<div style="display:none"> Gerrit-Change-Number: 9090 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>