Add update-expected-xml call 70/6270/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 31 Aug 2017 21:43:32 +0000 (17:43 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 31 Aug 2017 21:44:08 +0000 (17:44 -0400)
Simplify the process of updating the expected-xml by adding a command to
tox.

Change-Id: I02a9f07272baab3fd0dd4407cdb0afb3ffd6e3c7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
tox.ini

diff --git a/tox.ini b/tox.ini
index a6d47a8..d5b6bae 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -20,7 +20,7 @@ commands =
 deps =
     jenkins-job-builder
 commands =
-    jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}:.jjb-test
+    jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
 
 [testenv:jjb-compare-xml]
 deps =
@@ -31,3 +31,10 @@ commands =
 [testenv:license]
 deps = lftools
 commands = lftools license check-dir -r '.+' shell
+
+[testenv:update-expected-xml]
+deps =
+    jenkins-job-builder
+commands =
+    jenkins-jobs test --recursive -o {toxinidir}/.jjb-test/expected-xml {toxinidir}/jjb:{toxinidir}/.jjb-test
+