From 248aca1a481e513af21a9325b601f5ee0a06307e Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Tue, 5 Dec 2017 23:38:14 -0500 Subject: [PATCH] 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 --- tools/tox-log-command.sh | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tox-log-command.sh b/tools/tox-log-command.sh index b3269f30d2..427b16fed4 100755 --- a/tools/tox-log-command.sh +++ b/tools/tox-log-command.sh @@ -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 diff --git a/tox.ini b/tox.ini index 48286f4353..6076eee349 100644 --- a/tox.ini +++ b/tox.ini @@ -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]