[pygobject] setup.py: set the same env vars for testing as autotools



commit 0d3fbc2a8d10c9eea4e3eef905d52c946f8ab7e9
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Wed Feb 14 01:16:51 2018 +0100

    setup.py: set the same env vars for testing as autotools
    
    Also don't print a Python stack trace of the calling process on
    error, just return the error status.

 setup.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/setup.py b/setup.py
index 8bddefc3..ac65294e 100755
--- a/setup.py
+++ b/setup.py
@@ -452,11 +452,15 @@ class test(Command):
         env = os.environ.copy()
         env.pop("MSYSTEM", None)
 
+        env["MALLOC_PERTURB_"] = "85"
+        env["MALLOC_CHECK_"] = "3"
+        env["G_SLICE"] = "debug-blocks"
+
         tests_dir = os.path.join(get_script_dir(), "tests")
-        subprocess.check_call([
+        sys.exit(subprocess.call([
             sys.executable,
             os.path.join(tests_dir, "runtests.py"),
-        ], env=env)
+        ], env=env))
 
 
 class quality(Command):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]