<p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.osmocom.org/c/docker-playground/+/26408">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/docker-playground/+/26408/1/ttcn3-bsc-test/jenkins.sh">File ttcn3-bsc-test/jenkins.sh:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/docker-playground/+/26408/1/ttcn3-bsc-test/jenkins.sh@46">Patch Set #1, Line 46:</a> <code style="font-family:monospace,monospace">docker exec   ${BUILD_TAG}-bsc "pidof osmo-bsc > /tmp/sut.pid"</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Doesn't work for me:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  + docker exec nonjenkins-bsc pidof osmo-bsc > /tmp/sut.pid<br>  OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "pidof osmo-bsc > /tmp/sut.pid": stat pidof osmo-bsc > /tmp/sut.pid: no such file or directory: unknown</pre><p style="white-space: pre-wrap; word-wrap: break-word;">Because of "set -e" we do above, the script calls the clean up hook and exits here. I think this is a race condition, osmo-bsc may not have started at this point?</p><p style="white-space: pre-wrap; word-wrap: break-word;">However, the SUT runs in a different docker container than the testsuite. It uses a different pid namespace, so ttcn3-tcpdump-stop.sh can't run "kill -s USR1". At least in my setup it doesn't work, osmo-bsc has pid 7 in its own container, and then running in the testsuite docker container:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  $ kill -s USR1 7<br>  bash: kill: (7) - No such process</pre><p style="white-space: pre-wrap; word-wrap: break-word;">Maybe an alternative approach could be to get the talloc report via ttcn-3 + CTRL/VTY port right before closing that connection at the end of the test, and print it there / write it to a file with the test name?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/docker-playground/+/26408">change 26408</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/docker-playground/+/26408"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: docker-playground </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Icd4c2d80db934535d499598282ed9416d8088163 </div>
<div style="display:none"> Gerrit-Change-Number: 26408 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 29 Nov 2021 09:37:02 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>