<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9470">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">CI: Add teardownRealtime<br><br>Change-Id: I2fe55c38607eaec2fbf69ef23a5019e0c443a64b<br>---<br>M tests/CI/runTestsuite.sh<br>M tests/CI/setupRealtime.sh<br>A tests/CI/teardownRealtime.sh<br>3 files changed, 13 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/70/9470/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/CI/runTestsuite.sh b/tests/CI/runTestsuite.sh</span><br><span>index 35f4d58..9261308 100755</span><br><span>--- a/tests/CI/runTestsuite.sh</span><br><span>+++ b/tests/CI/runTestsuite.sh</span><br><span>@@ -16,6 +16,10 @@</span><br><span> echo "Running tests ${TEST_COMMAND}"</span><br><span> ./runtests.py --cleanup ${TEST_COMMAND} | contrib/scripts/pretty_print --no-color --no-timer --term-width=120 --show-errors || :</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+if [ $REALTIME -eq 0 ] ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ $CIDIR/teardownRealtime.sh</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> if [ -f core* ] ; then</span><br><span> echo "*** Found a core file after running unit tests ***"</span><br><span> /var/lib/asterisk/scripts/ast_coredumper --no-default-search core*</span><br><span>diff --git a/tests/CI/setupRealtime.sh b/tests/CI/setupRealtime.sh</span><br><span>index 01593a1..f599d33 100755</span><br><span>--- a/tests/CI/setupRealtime.sh</span><br><span>+++ b/tests/CI/setupRealtime.sh</span><br><span>@@ -4,7 +4,9 @@</span><br><span> </span><br><span> set -e</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-cat >test-config.yaml <<EOF</span><br><span style="color: hsl(120, 100%, 40%);">+cp test-config.yaml test-config.orig.yaml</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+cat >test-config.yaml <<-EOF</span><br><span> global-settings:</span><br><span> test-configuration: config-realtime</span><br><span> </span><br><span>diff --git a/tests/CI/teardownRealtime.sh b/tests/CI/teardownRealtime.sh</span><br><span>new file mode 100755</span><br><span>index 0000000..1114699</span><br><span>--- /dev/null</span><br><span>+++ b/tests/CI/teardownRealtime.sh</span><br><span>@@ -0,0 +1,6 @@</span><br><span style="color: hsl(120, 100%, 40%);">+#!/usr/bin/env bash</span><br><span style="color: hsl(120, 100%, 40%);">+CIDIR=$(dirname $(readlink -fn $0))</span><br><span style="color: hsl(120, 100%, 40%);">+source $CIDIR/ci.functions</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+cp test-config.orig.yaml test-config.yaml</span><br><span style="color: hsl(120, 100%, 40%);">+psql --username=asterisk --host=localhost --db=asterisk --command='DROP OWNED BY asterisk CASCADE'</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9470">change 9470</a>. To unsubscribe, or for help writing mail filters, 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/9470"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I2fe55c38607eaec2fbf69ef23a5019e0c443a64b </div>
<div style="display:none"> Gerrit-Change-Number: 9470 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>