From c0b2604e9bde4ba215af0c6ba00682a5c08a80e5 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Sat, 11 May 2019 18:51:11 -0400 Subject: [PATCH] Whitelist rm external usage in tox.ini This cleans up the error message from tox: WARNING: test command found but not installed in testenv cmd: /bin/rm env: /home/osboxes/git/python-watcherclient/.tox/py27 Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting. DEPRECATION WARNING: this will be an error in tox 4 and above! Change-Id: I854676b070720df496cb6c66f2fd1a92d232fa11 --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 2545408..869ac25 100644 --- a/tox.ini +++ b/tox.ini @@ -14,6 +14,8 @@ deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt +whitelist_externals = + rm commands = rm -f .testrepository/times.dbm stestr --test-path=./watcherclient/tests/unit run {posargs} stestr slowest