osmith has uploaded this change for review.

View Change

remsim: make client tests work in testenv

* Prevent osmo-remsim-client-shell from closing immediately with "STDIN
was closed, terminating".

* Fix REMSIM_Tests.cfg:
* move mp_ to proper section
* proper IP

Change-Id: I91b08b9bfde11f4600993b18ece1e810b61ed904
---
M remsim/client/REMSIM_Tests.cfg
M remsim/testenv_client.cfg
2 files changed, 6 insertions(+), 5 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/16/39916/1
diff --git a/remsim/client/REMSIM_Tests.cfg b/remsim/client/REMSIM_Tests.cfg
index b249087..affa599 100644
--- a/remsim/client/REMSIM_Tests.cfg
+++ b/remsim/client/REMSIM_Tests.cfg
@@ -6,12 +6,12 @@
*.JUnitLogger.filename_stem := "junit-xml-client"

[TESTPORT_PARAMETERS]
-# IP address to which ATS binds emulated remsim-server
-REMSIM_Tests.mp_server_ip := "127.0.0.10"
-# IP address to which ATS binds emulated remsim-bankd
-REMSIM_Tests.mp_bankd_ip := "127.0.0.10"

[MODULE_PARAMETERS]
+# IP address to which ATS binds emulated remsim-server
+REMSIM_Tests.mp_server_ip := "127.0.0.1"
+# IP address to which ATS binds emulated remsim-bankd
+REMSIM_Tests.mp_bankd_ip := "127.0.0.1"

[MAIN_CONTROLLER]

diff --git a/remsim/testenv_client.cfg b/remsim/testenv_client.cfg
index c7d525b..73b8680 100644
--- a/remsim/testenv_client.cfg
+++ b/remsim/testenv_client.cfg
@@ -3,6 +3,7 @@
config=client/REMSIM_Tests.cfg

[client]
-program=osmo-remsim-client-shell
+# sleep: avoid "STDIN was closed, terminating"
+program=sleep 9999 | osmo-remsim-client-shell
make=osmo-remsim
package=osmo-remsim-client-shell

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

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I91b08b9bfde11f4600993b18ece1e810b61ed904
Gerrit-Change-Number: 39916
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>