summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/nrvo/expect.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/nrvo/expect.py')
-rw-r--r--cpp/demo/Ice/nrvo/expect.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/demo/Ice/nrvo/expect.py b/cpp/demo/Ice/nrvo/expect.py
index 81acd6aa7a7..0023b1579b5 100644
--- a/cpp/demo/Ice/nrvo/expect.py
+++ b/cpp/demo/Ice/nrvo/expect.py
@@ -16,10 +16,10 @@ if len(head) > 0:
path = [os.path.join(head, p) for p in path]
path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "demoscript")) ]
if len(path) == 0:
- raise "can't find toplevel directory!"
+ raise RuntimeError("can't find toplevel directory!")
sys.path.append(path[0])
-from demoscript import *
+from demoscript import Util
from demoscript.Ice import nrvo
server = Util.spawn('./server --Ice.PrintAdapterReady')
@@ -28,3 +28,5 @@ client = Util.spawn('./client')
client.expect('.*==>')
nrvo.run(client, server)
+
+server.waitTestSuccess()