osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-dev/+/36769?usp=email )
Change subject: ttcn3/ttcn3.sh: collect_logs: fix tester* paths ......................................................................
ttcn3/ttcn3.sh: collect_logs: fix tester* paths
For ttcn3-bts-test and ttcn3-ggsn-test, the tester dir has the configuration at the end (…-tester-all etc.). Support that in the collect_logs function.
Change-Id: I2aaab0c37fffedaeb49a362f77d795f017e2a7da --- M ttcn3/ttcn3.sh 1 file changed, 14 insertions(+), 4 deletions(-)
Approvals: osmith: Looks good to me, approved; Verified
diff --git a/ttcn3/ttcn3.sh b/ttcn3/ttcn3.sh index 7cdf4c1..26f76da 100755 --- a/ttcn3/ttcn3.sh +++ b/ttcn3/ttcn3.sh @@ -502,11 +502,8 @@ }
collect_logs() { - # Merge and move logs - cd /tmp/logs/*-tester - # Format logs - for log in *.merged; do + for log in /tmp/logs/*-tester*/*.merged; do ttcn3_logformat -o "${log}.log" "$log" sudo rm "$log" done