<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/9093">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Jenkins2: Verified
George Joseph: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved; Approved for Submit
</div><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;">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/9093">change 9093</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/9093"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 15.4 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ie5f7a78afe913567966a520ba2c87ad8af6f17f6 </div>
<div style="display:none"> Gerrit-Change-Number: 9093 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>