From 6fbf5c55167672dd95640743b5ae36ee61a7880f Mon Sep 17 00:00:00 2001 From: Jim Rollenhagen Date: Mon, 16 May 2016 12:18:26 +0000 Subject: [PATCH] Eliminate warnings about rm in api-ref build This currently gives a warning about the 'rm' command not being installed in the venv. Whitelist bash and run rm under bash (like we do with other external commands) to squash this warning. Closes-Bug: #1581778 Change-Id: Id26926ad7a75b94f0f57ea3c2083312c66663b34 --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 7f876d1f60..3436eba711 100644 --- a/tox.ini +++ b/tox.ini @@ -76,9 +76,10 @@ commands = # we do not used -W here because we are doing some slightly tricky # things to build a single page document, and as such, we are ok # ignoring the duplicate stanzas warning. +whitelist_externals = bash install_command = pip install -U --force-reinstall {opts} {packages} commands = - rm -rf api-ref/build + bash -c 'rm -rf api-ref/build' sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html [testenv:releasenotes]