Move run-unittests.sh to the project root

This commit is contained in:
mprahl
2020-03-12 09:30:15 -04:00
parent 4bf1bd862e
commit 7045b21716
3 changed files with 6 additions and 6 deletions

View File

@@ -80,17 +80,17 @@ node('factory2'){
timeout(30) {
parallel py2_sqlite: {
stage('Test with Python 2 & SQLite') {
onmyduffynode '~/fm-orchestrator/contrib/run-unittests.sh --no-tty'
onmyduffynode '~/fm-orchestrator/run-unittests.sh --no-tty'
}
},
py3_sqlite: {
stage('Test with Python 3 & SQLite') {
onmyduffynode '~/fm-orchestrator/contrib/run-unittests.sh --py3 --no-tty'
onmyduffynode '~/fm-orchestrator/run-unittests.sh --py3 --no-tty'
}
},
py3_postgres: {
stage('Test with Python 3 & Postgresql') {
onmyduffynode '~/fm-orchestrator/contrib/run-unittests.sh --py3 --with-pgsql --no-tty'
onmyduffynode '~/fm-orchestrator/run-unittests.sh --py3 --with-pgsql --no-tty'
}
}
}

View File

@@ -20,7 +20,7 @@ section "Updating test images in Quay" to learn how to manage these images.
.. _factory2: https://quay.io/organization/factory2
To run the tests, just simply run: ``contrib/run-unittests.sh``
To run the tests, just simply run: ``run-unittests.sh``
By default, this script runs tests inside container ``mbs-test-centos``
with Python 2 and SQLite database.
@@ -34,13 +34,13 @@ There are options to change the tests enviornment:
* ``--podman``: use Podman instead of Docker
* ``--no-pull``: don't update Docker images
For example, ``contrib/run-unittests.sh --py3 --with-pgsql``.
For example, ``run-unittests.sh --py3 --with-pgsql``.
You can specify the subset of tests to run inside the container as well. Tests
specified from the command-line are passed to ``py.test`` directly. Please note that,
the path of each test must be a relative path. For example::
contrib/run-unittests.sh \
run-unittests.sh \
tests/test_utils/ \
tests/test_mmd_resolver.py \
tests/test_builder/test_koji.py::TestKojiBuilder::test_tag_to_repo