#718 convenience script to run py2 and py3 tests in parallel
Merged by mikem. Opened by mikem.
mikem/koji runtests-script  into  master

Download 718.patch

Hey, I'm lazy and sometimes I run make test and forget to also run make test3. This script ensures that both are run and does so in parallel.
Also, it runs them in fresh checkouts of HEAD, which avoids interference from uncommitted changes or .pyc remnants

:thumbsup:

Could we rename make test to make test2,
And make make test invoking both make test2 and make test3?

Could we rename make test to make test2,
And make make test invoking both make test2 and make test3?

So you mean separate from this (and not in parallel)? E.g.

@@ -64,7 +64,10 @@ clean:
 git-clean:
        @git clean -d -q -x
-test:
+
+test: test2 test3
+
+test2:
        coverage erase
        PYTHONPATH=hub/.:plugins/hub/.:plugins/builder/.:plugins/cli/.:cli/.:www/lib coverage run \
            --source . /usr/bin/nosetests

Some version of this seems plausible, though we'd probably have to tweak some of our automatic test setup.

So you mean separate from this (and not in parallel)? E.g.
@@ -64,7 +64,10 @@ clean:
git-clean:
@git clean -d -q -x

-test:
+
+test: test2 test3
+
+test2:
coverage erase
PYTHONPATH=hub/.:plugins/hub/.:plugins/builder/.:plugins/cli/.:cli/.:www/lib coverage run \
--source . /usr/bin/nosetests

Some version of this seems plausible, though we'd probably have to tweak some of our automatic test setup.

Yes. And the parallel one could also be kept here to make our testing more convenient.
Let me file another PR for makefile update.

Commit 43c48c61 fixes this pull-request

Pull-Request has been merged by mikem

Metadata