diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-02-24 20:01:00 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-02-25 17:04:08 +0000 |
commit | 8b24e9f2035c36abe1310a3b5bbe212b10fe4d08 (patch) | |
tree | 264993d2913d2866970dbb7c755ff4c6531d48e9 | |
parent | c634063ea37875f38a31c5ff643a5fed43d7cafa (diff) |
vty_rest_runner.py: remove debug monitoring for TCP sockets
Change-Id: I7361bb0ce5302d00ccb18dc04eeb75ee1f6844a8
-rw-r--r-- | openbsc/tests/vty_test_runner.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py index 8b173977c..ca4b27642 100644 --- a/openbsc/tests/vty_test_runner.py +++ b/openbsc/tests/vty_test_runner.py @@ -1240,19 +1240,6 @@ def nat_msc_test(x, ip, port, verbose = False): " connected yet: %r %r" % (ip, port)) return conn -def cmd(what): - print '\n> %s' % what - sys.stdout.flush() - subprocess.call(what, shell=True) - sys.stdout.flush() - sys.stderr.flush() - print '' - sys.stdout.flush() - -def checkxxx(): - cmd('cat /proc/net/tcp'); - cmd('ps xua | grep osmo'); - def ipa_handle_small(x, verbose = False): s = data2str(x.recv(4)) if len(s) != 4*2: @@ -1277,10 +1264,6 @@ def ipa_handle_resp(x, tk, verbose = False, proc=None): if "0023fe040108010701020103010401050101010011" in s: retries = 3 while True: - if proc: - print "\tproc.poll() = %r" % proc.poll() - print "\tproc.pid = %r" % proc.pid - checkxxx() print "\tsending IPA identity(%s) at %s" % (tk, time.strftime("%T")) try: x.send(IPA().id_resp(IPA().identity(name = tk.encode('utf-8')))) @@ -1313,19 +1296,14 @@ def nat_bsc_sock_test(nr, tk, verbose = False, proc=None): if proc: print "\tproc.poll() = %r" % proc.poll() print "\tproc.pid = %r" % proc.pid - checkxxx() ipa_handle_small(bsc, verbose) - checkxxx() ipa_handle_resp(bsc, tk, verbose, proc=proc) if proc: print "\tproc.poll() = %r" % proc.poll() - checkxxx() bsc.recv(27) # MGCP msg if proc: print "\tproc.poll() = %r" % proc.poll() - checkxxx() ipa_handle_small(bsc, verbose) - checkxxx() return bsc def add_bsc_test(suite, workdir): |