From 82ba76c791c1f788f8c993214ff4db63ca192573 Mon Sep 17 00:00:00 2001 From: Jingjing Shao Date: Sep 28 2018 08:06:15 +0000 Subject: [PATCH 1/4] Fix #3657 Update README with details on the new testing script(s) --- diff --git a/README.rst b/README.rst index 464e9af..40c9e74 100644 --- a/README.rst +++ b/README.rst @@ -152,7 +152,7 @@ Manually * Install the needed system libraries:: - sudo dnf install git python3 libgit2-devel redis \ + sudo dnf install git python3 python3-devel libgit2-devel redis \ libjpeg-devel gcc libffi-devel redhat-rpm-config .. note:: Do note the version of libgit2 that you install, for example @@ -205,7 +205,7 @@ Manually python createdb.py --initial alembic.ini -* Enable and start redis server:: +* Enable and start redis server (use ``sudo`` if necessary):: systemctl enable redis systemctl start redis @@ -235,7 +235,13 @@ This will launch the application at http://127.0.0.1:5000 * Run it:: - ./runtests.sh + python runtests.py run + + You may use:: + + python runtest.py + + to check other options supported or read the source code:-) .. note:: While testing for worker tasks, pagure uses celery in /usr/bin/ Celery then looks for eventlet (which we use for testing only) at From 3583b23df21e323316a415ffed88c38e538245be Mon Sep 17 00:00:00 2001 From: Jingjing Shao Date: Sep 28 2018 08:10:02 +0000 Subject: [PATCH 2/4] Update README.rst --- diff --git a/README.rst b/README.rst index 40c9e74..08de290 100644 --- a/README.rst +++ b/README.rst @@ -239,7 +239,7 @@ This will launch the application at http://127.0.0.1:5000 You may use:: - python runtest.py + python runtests.py to check other options supported or read the source code:-) From dee1543907521d4a0861d6e559301ee813dbbf1c Mon Sep 17 00:00:00 2001 From: Jingjing Shao Date: Sep 28 2018 08:35:39 +0000 Subject: [PATCH 3/4] Update PR#3770 --- diff --git a/README.rst b/README.rst index 08de290..120cafb 100644 --- a/README.rst +++ b/README.rst @@ -205,10 +205,10 @@ Manually python createdb.py --initial alembic.ini -* Enable and start redis server (use ``sudo`` if necessary):: +* Enable and start redis server:: - systemctl enable redis - systemctl start redis + sudo systemctl enable redis + sudo systemctl start redis * Start a worker, in one terminal:: @@ -239,7 +239,7 @@ This will launch the application at http://127.0.0.1:5000 You may use:: - python runtests.py + python runtests.py --help to check other options supported or read the source code:-) From 8d93a8d7f8b5c93bade006a24fae1ec7475e704f Mon Sep 17 00:00:00 2001 From: Jingjing Shao Date: Sep 28 2018 08:38:52 +0000 Subject: [PATCH 4/4] Update doc/contributing.rst --- diff --git a/doc/contributing.rst b/doc/contributing.rst index bd54af5..95ba7ac 100644 --- a/doc/contributing.rst +++ b/doc/contributing.rst @@ -13,11 +13,13 @@ If you're submitting patches to pagure, please observe the following: yourself (which is simple: ``black /path/to/pagure``). - Check that your code doesn't break the test suite. The test suite can be - run using the ``runtests.sh`` shell script at the top of the sources. + run using the ``runtests.py`` script at the top of the sources, you may + use ``python runtests.py run`` to run the tests and ``python runtests.py --help`` + to check other options supported. See :doc:`development` for more information about the test suite. - If you are adding new code, please write tests for them in ``tests/``, - the ``runtests.sh`` script will help you to see the coverage of your code + the ``runtests.py`` script will help you to see the coverage of your code in unit-tests. - If your change warrants a modification to the docs in ``doc/`` or any