aboutsummaryrefslogtreecommitdiff
path: root/devel/ice/files
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2015-03-23 15:28:05 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2015-03-23 15:28:05 +0000
commitde8b4e19152a39ee8d6a6e5eb9b164bf809cc429 (patch)
treeb0af933fd6f8ea1b30b623d88c848772677f1d71 /devel/ice/files
parentccc283fe5259a8fec38ecb4a9d4737908958c79a (diff)
downloadports-de8b4e19152a39ee8d6a6e5eb9b164bf809cc429.tar.gz
ports-de8b4e19152a39ee8d6a6e5eb9b164bf809cc429.zip
Make sure that failed unit tests lead to failed builds.
Fix the unit test python script provided upstream [1] and move running the unit test to the pre-install target. [1] https://zeroc.com/forums/patches/6416-ice-3-5-1-small-patch-testutil-py.html Approved by: mentors (implicit)
Notes
Notes: svn path=/head/; revision=382009
Diffstat (limited to 'devel/ice/files')
-rw-r--r--devel/ice/files/patch-scripts-TestUtil.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/devel/ice/files/patch-scripts-TestUtil.py b/devel/ice/files/patch-scripts-TestUtil.py
index 2b992d5512a9..a37569fd8cef 100644
--- a/devel/ice/files/patch-scripts-TestUtil.py
+++ b/devel/ice/files/patch-scripts-TestUtil.py
@@ -1,5 +1,5 @@
--- scripts.orig/TestUtil.py 2013-03-11 15:19:47.000000000 +0000
-+++ scripts/TestUtil.py 2013-05-21 00:29:37.903194948 +0000
++++ scripts/TestUtil.py 2015-03-23 14:08:57.225102620 +0000
@@ -84,6 +84,25 @@
def isLinux():
return sys.platform.startswith("linux")
@@ -41,3 +41,12 @@
if not isWin32() and "win32only" in config:
print("%s*** test only supported under Win32%s" % (prefix, suffix))
continue
+@@ -1929,7 +1929,7 @@
+ print(" exit 1")
+ print("fi")
+ else:
+- status = os.system(sys.executable + " " + quoteArgument(os.path.join(dir, "run.py")) + " " + args)
++ status = os.system(sys.executable + " " + quoteArgument(os.path.join(dir, "run.py")) + " " + args) >> 8
+
+ if status:
+ if(num > 0):