summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-10-11 18:54:15 (GMT)
committerGuido van Rossum <guido@python.org>1995-10-11 18:54:15 (GMT)
commit5e6a3564b02756187ff611bd0606797c731eef63 (patch)
treeffc2bc46d4ae13d3dbc343bf172769db96ef29e6 /Demo
parent81a07ceddc86d75e48242f0b94e9e3f5bab72e5b (diff)
downloadcpython-5e6a3564b02756187ff611bd0606797c731eef63.zip
cpython-5e6a3564b02756187ff611bd0606797c731eef63.tar.gz
cpython-5e6a3564b02756187ff611bd0606797c731eef63.tar.bz2
undo opaque=fopaque changes; make test script more flexible
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/rpc/test7
-rw-r--r--Demo/rpc/xdr.py4
2 files changed, 6 insertions, 5 deletions
diff --git a/Demo/rpc/test b/Demo/rpc/test
index d3c9591..ba220f2 100755
--- a/Demo/rpc/test
+++ b/Demo/rpc/test
@@ -1,15 +1,16 @@
: ${PYTHON=python}
+: ${SERVER=charon.cwi.nl}
set -xe
$PYTHON -c 'from rpc import test; test()'
-$PYTHON -c 'from rpc import test; test()' charon.cwi.nl
+$PYTHON -c 'from rpc import test; test()' ${SERVER}
$PYTHON -c 'from rpc import testsvr; testsvr()' &
-SVR=$!
+PID=$!
sleep 2
$PYTHON -c 'from rpc import testclt; testclt()'
-kill -2 $SVR
+kill -2 $PID
$PYTHON -c 'from mountclient import test; test()'
$PYTHON -c 'from mountclient import test; test()' gatekeeper.dec.com
diff --git a/Demo/rpc/xdr.py b/Demo/rpc/xdr.py
index 109d2f9..43abcee 100644
--- a/Demo/rpc/xdr.py
+++ b/Demo/rpc/xdr.py
@@ -69,7 +69,7 @@ class Packer:
self.pack_uint(n)
self.pack_fstring(n, s)
- pack_opaque = pack_fopaque
+ pack_opaque = pack_string
def pack_list(self, list, pack_item):
for item in list:
@@ -176,7 +176,7 @@ class Unpacker:
n = self.unpack_uint()
return self.unpack_fstring(n)
- unpack_opaque = unpack_fopaque
+ unpack_opaque = unpack_string
def unpack_list(self, unpack_item):
list = []