gentoo/dev-libs/Ice/files/Ice-3.6.1-python-test-import.patch

27 lines
949 B
Diff

From 69e03dfb1c7fa26d2bc8a571bc773994607eb01d Mon Sep 17 00:00:00 2001
From: Dwayne Boone <dwayne@zeroc.com>
Date: Tue, 15 Sep 2015 16:48:21 -0230
Subject: [PATCH] ICE-6792 fix for test failure on linux
---
python/test/Slice/import/run.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/python/test/Slice/import/run.py b/python/test/Slice/import/run.py
index 02a58b1..2594c96 100755
--- a/python/test/Slice/import/run.py
+++ b/python/test/Slice/import/run.py
@@ -41,8 +41,10 @@
else:
slice2py = os.path.join(path[0], "python", "config", "s2py.py")
-subprocess.call([sys.executable, slice2py, "Test1.ice"])
-subprocess.call([sys.executable, slice2py, "Test2.ice"])
+s2p = TestUtil.spawn(sys.executable + " " + slice2py + " Test1.ice")
+s2p.waitTestSuccess()
+s2p = TestUtil.spawn(sys.executable + " " + slice2py + " Test2.ice")
+s2p.waitTestSuccess()
sys.stdout.write("starting client... ")
sys.stdout.flush()