osmith submitted this change.

View Change


Approvals: osmith: Looks good to me, approved; Verified
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(-)

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

To view, visit change 36769. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: I2aaab0c37fffedaeb49a362f77d795f017e2a7da
Gerrit-Change-Number: 36769
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-MessageType: merged