diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-07-07 06:27:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-07-07 06:27:10 +0000 |
commit | ac2de52a5de68f6f4f13b7aa01a481869fffc6aa (patch) | |
tree | 856c9f0b2f55f8cae99f3c7b3bf22beaecbf58da /src/peerinfo-tool/test_gnunet_peerinfo.py.in | |
parent | c1a3c11f8665432d9db6d549c28c0329668e66af (diff) |
hacks from trip
Diffstat (limited to 'src/peerinfo-tool/test_gnunet_peerinfo.py.in')
-rwxr-xr-x | src/peerinfo-tool/test_gnunet_peerinfo.py.in | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/peerinfo-tool/test_gnunet_peerinfo.py.in b/src/peerinfo-tool/test_gnunet_peerinfo.py.in index ba542f28ac..01f76aa1ef 100755 --- a/src/peerinfo-tool/test_gnunet_peerinfo.py.in +++ b/src/peerinfo-tool/test_gnunet_peerinfo.py.in @@ -46,12 +46,12 @@ try: os.system ('gnunet-arm -q -i transport -c test_gnunet_peerinfo_data.conf') os.system ('sleep 1') pinfo = pexpect.spawn ('gnunet-peerinfo -c test_gnunet_peerinfo_data.conf') - pinfo.expect (re.compile ("Peer `.*\' with trust *0\r")); + pinfo.expect (re.compile ("Peer `.*\'\r")); pinfo.expect (re.compile (" *localhost:24357\r")); pinfo.expect (pexpect.EOF); pinfo = pexpect.spawn ('gnunet-peerinfo -c test_gnunet_peerinfo_data.conf -n') - pinfo.expect (re.compile ("Peer `.*\' with trust *0\r")); + pinfo.expect (re.compile ("Peer `.*\'\r")); pinfo.expect (re.compile (" *127..*:24357\r")); pinfo.expect (pexpect.EOF); @@ -59,14 +59,6 @@ try: pid = pinfo.read (-1) pid = pid.strip () - pinfo = pexpect.spawn ('gnunet-peerinfo -c test_gnunet_peerinfo_data.conf 4 ' + pid) - pinfo.expect (re.compile ("Peer `" + pid + "\' with trust *4\r")); - pinfo.expect (pexpect.EOF); - - pinfo = pexpect.spawn ('gnunet-peerinfo -c test_gnunet_peerinfo_data.conf -- -4 ' + pid) - pinfo.expect (re.compile ("Peer `" + pid + "\' with trust *0\r")); - pinfo.expect (pexpect.EOF); - finally: os.system ('gnunet-arm -c test_gnunet_peerinfo_data.conf -eq') os.system ('rm -rf /tmp/gnunet-test-peerinfo/') |