log yamllint output to its own file

Adjust the tox log wrapper so it works with the full path to the
script for running yamllint, then add it to the step for running
yamllint so the results are logged to a separate file.

Change-Id: I98561e17e4fa76aeee9adfd57d9e71a7f229e536
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-12-05 23:38:14 -05:00
parent 12f0400696
commit 248aca1a48
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
# License for the specific language governing permissions and limitations
# under the License.
cmd="$1"
cmd=$(basename "$1" | cut -f1 -d.)
shift
if [ -z "$LOGDIR" ]; then

View File

@ -23,7 +23,7 @@ commands =
deps =
yamllint==1.4.1
commands =
{toxinidir}/tools/run_yamllint.sh
{toxinidir}/tools/tox-log-command.sh {toxinidir}/tools/run_yamllint.sh
{toxinidir}/tools/tox-log-command.sh validate-request {posargs}
[testenv:list-changes]