diff options
| author | Michael Gmelin <grembo@FreeBSD.org> | 2015-03-23 15:28:05 +0000 |
|---|---|---|
| committer | Michael Gmelin <grembo@FreeBSD.org> | 2015-03-23 15:28:05 +0000 |
| commit | de8b4e19152a39ee8d6a6e5eb9b164bf809cc429 (patch) | |
| tree | b0af933fd6f8ea1b30b623d88c848772677f1d71 /devel/ice/files/patch-scripts-TestUtil.py | |
| parent | x11/libXfixes: add CPE information (diff) | |
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/patch-scripts-TestUtil.py')
| -rw-r--r-- | devel/ice/files/patch-scripts-TestUtil.py | 11 |
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): |
