<p>osmith <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26601">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  fixeria: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ttcn3-tcpdump-stop: add timeout for talloc report<br><br>Prevent the script from idling for several minutes without any output if<br>obtaining the talloc report does not work. It seems to get killed<br>eventually, but trying for 5s should be enough.<br><br>Change-Id: I1bc5baeb94ecd25e1cdab98b060b99747c19d1f9<br>---<br>M ttcn3-tcpdump-stop.sh<br>1 file changed, 7 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/ttcn3-tcpdump-stop.sh b/ttcn3-tcpdump-stop.sh</span><br><span>index 4fbc53f..faf5b2b 100755</span><br><span>--- a/ttcn3-tcpdump-stop.sh</span><br><span>+++ b/ttcn3-tcpdump-stop.sh</span><br><span>@@ -35,10 +35,15 @@</span><br><span> # Order the SUT to print a talloc report</span><br><span> if [ "z$OSMO_SUT_HOST" != "z" ] && [ "z$OSMO_SUT_PORT" != "z" ]; then</span><br><span>        if [ -x "$(command -v osmo_interact_vty.py)" ]; then</span><br><span style="color: hsl(0, 100%, 40%);">-          osmo_interact_vty.py \</span><br><span style="color: hsl(120, 100%, 40%);">+                echo "Saving talloc report from $OSMO_SUT_HOST:$OSMO_SUT_PORT to $TESTCASE.talloc"</span><br><span style="color: hsl(120, 100%, 40%);">+          if ! timeout 5 osmo_interact_vty.py \</span><br><span>                        -H $OSMO_SUT_HOST -p $OSMO_SUT_PORT \</span><br><span>                        -c "en; show talloc-context application full" \</span><br><span style="color: hsl(0, 100%, 40%);">-                               > "$TTCN3_PCAP_PATH/$TESTCASE.talloc"</span><br><span style="color: hsl(120, 100%, 40%);">+                            > "$TTCN3_PCAP_PATH/$TESTCASE.talloc"; then</span><br><span style="color: hsl(120, 100%, 40%);">+                      echo</span><br><span style="color: hsl(120, 100%, 40%);">+                  echo "ERROR: failed to get talloc report via vty"</span><br><span style="color: hsl(120, 100%, 40%);">+                   echo</span><br><span style="color: hsl(120, 100%, 40%);">+          fi</span><br><span>   else</span><br><span>                 echo "Missing osmo_interact_vty.py from osmo-python-tests!"</span><br><span>                echo " -> Unable to obtain talloc report from the SUT"</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26601">change 26601</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/osmo-ttcn3-hacks/+/26601"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I1bc5baeb94ecd25e1cdab98b060b99747c19d1f9 </div>
<div style="display:none"> Gerrit-Change-Number: 26601 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>