[reprotest] 01/01: Default tests to run on "null" only since it takes effort to set up the others

Ximin Luo infinity0 at debian.org
Fri Sep 23 10:08:25 UTC 2016


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

infinity0 pushed a commit to branch master
in repository reprotest.

commit 07ec6d129e13b144728b4320fc10a9dabd8944c2
Author: Ximin Luo <infinity0 at debian.org>
Date:   Fri Sep 23 12:07:41 2016 +0200

    Default tests to run on "null" only since it takes effort to set up the others
---
 README.md      | 15 ++++++++++-----
 tests/tests.py |  2 +-
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 01375d9..473afbe 100644
--- a/README.md
+++ b/README.md
@@ -68,8 +68,13 @@ The easiest way to run the tests is with
 [Coverage](https://pypi.python.org/pypi/coverage), and
 [pytest](https://pypi.python.org/pypi/pytest).  (On Debian, this can
 be done with `apt-get install python3-coverage tox python3-pytest`.)
-Next, setup the virtualization servers, for null (no virtualization),
-schroot, and qemu.
+
+To run the tests, go to the root of the repository, where `tox.ini` is
+and run `tox`.  For more verbose output, run `tox -- -s`.
+
+However, this runs the tests with no virtualization. To test that
+reprotest works correctly with virtualization, you'll need to setup
+the virtualization servers schroot and qemu.
 
 Some of the following instructions rely on Debian utilities.  For
 schroot, run `mk-sbuild --debootstrap-include=devscripts stable`.  (If
@@ -101,6 +106,6 @@ For the host system and the two containers, run:
     apt-get install python3 python3-pip
     apt-get install locales-all
 
-Then, clone the repository.  Go to the root of the repository, where
-`tox.ini` is, and run `tox`.  For more verbose output, run `tox --
--s`.
+Now, finally run the tests:
+
+    REPROTEST_TEST_SERVERS=null,qemu,schroot tox -- -s
diff --git a/tests/tests.py b/tests/tests.py
index bde054f..bc43f87 100755
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -18,7 +18,7 @@ def check_return_code(command, virtual_server, code):
     except SystemExit as system_exit:
         assert(system_exit.args[0] == code)
 
-REPROTEST_TEST_SERVERS = os.getenv("REPROTEST_TEST_SERVERS", "null,qemu,schroot").split(",")
+REPROTEST_TEST_SERVERS = os.getenv("REPROTEST_TEST_SERVERS", "null").split(",")
 @pytest.fixture(scope='module', params=REPROTEST_TEST_SERVERS)
 def virtual_server(request):
     if request.param == 'null':

-- 
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