summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/infra/jenkins/jjb-usage.rst6
-rw-r--r--tox.ini2
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/infra/jenkins/jjb-usage.rst b/docs/infra/jenkins/jjb-usage.rst
index 2be2598d9..671278121 100644
--- a/docs/infra/jenkins/jjb-usage.rst
+++ b/docs/infra/jenkins/jjb-usage.rst
@@ -31,6 +31,12 @@ Test with tox::
tox -v -ejjb
+.. note:: You can also test the jobs under a single jjb directory by
+ specifying the directory. For example to test only the releng jobs, you
+ could run:
+
+ tox -v -e jjb -- jjb/releng
+
Submit the change to gerrit::
git review -v
diff --git a/tox.ini b/tox.ini
index d3489e5b0..6618a8189 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,4 +17,4 @@ setenv=
deps =
jenkins-job-builder==1.6.1
commands=
- jenkins-jobs test -o job_output -r jjb/
+ jenkins-jobs test -o job_output -r jjb/global:{posargs:"jjb/"}