[Reproducible-commits] [reprotest] 02/02: Restore tests now that CPython bug is worked around

Ceridwen ceridwen-guest at moszumanska.debian.org
Sat Jul 16 04:17:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

ceridwen-guest pushed a commit to branch virtualization
in repository reprotest.

commit 60a136c3256d8f2dbd63b0e02c73ada48f7c969d
Author: Ceridwen <ceridwenv at gmail.com>
Date:   Sat Jul 16 00:16:39 2016 -0400

    Restore tests now that CPython bug is worked around
---
 reprotest/lib/adt_testbed.py | 4 ----
 tests/tests.py               | 6 +++---
 tox.ini                      | 5 +++--
 3 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/reprotest/lib/adt_testbed.py b/reprotest/lib/adt_testbed.py
index aaf25e9..299b46b 100644
--- a/reprotest/lib/adt_testbed.py
+++ b/reprotest/lib/adt_testbed.py
@@ -462,14 +462,10 @@ class Testbed:
                                         xenv=xenv,
                                         stdout=(stdout and subprocess.PIPE or None),
                                         stderr=subprocess.PIPE, kind=kind)
-        print('CHECK_EXEC')
-        print(code, out, err)
         if err:
             self.bomb('"%s" failed with stderr "%s"' % (' '.join(argv), err),
                       adtlog.AutopkgtestError)
         if code != 0:
-            print('SHOULD RAISE HERE')
-            import pdb; pdb.set_trace()
             self.bomb('"%s" failed with status %i' % (' '.join(argv), code),
                       adtlog.AutopkgtestError)
         return out
diff --git a/tests/tests.py b/tests/tests.py
index 5727cca..a6944ef 100755
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -26,11 +26,11 @@ def virtual_server(request):
         raise ValueError(request.param)
 
 def test_simple_builds(virtual_server):
-    # check_return_code('python3 mock_build.py', virtual_server, 0)
+    check_return_code('python3 mock_build.py', virtual_server, 0)
     check_return_code('python3 mock_failure.py', virtual_server, 2)
-    # check_return_code('python3 mock_build.py irreproducible', virtual_server, 1)
+    check_return_code('python3 mock_build.py irreproducible', virtual_server, 1)
 
- at pytest.mark.parametrize('variation', ['fileordering', 'home', 'kernel', 'locales', 'path', 'timezone']) #, 'umask'
+ at pytest.mark.parametrize('variation', ['fileordering', 'home', 'kernel', 'locales', 'path', 'timezone', 'umask'])
 def test_variations(virtual_server, variation):
     check_return_code('python3 mock_build.py ' + variation, virtual_server, 1)
 
diff --git a/tox.ini b/tox.ini
index 8ff1b21..8f0cbda 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
-envlist = coverage-clean, py35, coverage-stats
-# envlist = py35
+# envlist = coverage-clean, py35, coverage-stats
+envlist = py35
 skip_missing_interpreters = true
 
 [testenv:coverage-clean]
@@ -24,3 +24,4 @@ deps =
   pytest
 # commands = py.test --cov-report html --cov=reprotest tests/tests.py
 commands = coverage run --omit .tox/* --parallel -m py.test {posargs} tests/tests.py
+# commands = py.test {posargs} tests/tests.py

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/reprotest.git



More information about the Reproducible-commits mailing list