Browse Source

Make test debug working

Now running `tox -e debug <test_name>` can not working,
this commit fix this.

Change-Id: I4e9fc63550c33a438d60b3b84067fb113fb67280
zhurong 2 years ago
parent
commit
46dde10a13
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      tox.ini

+ 4
- 1
tox.ini View File

@@ -6,6 +6,7 @@ skipsdist = True
6 6
 [testenv]
7 7
 usedevelop = True
8 8
 whitelist_externals = bash
9
+                      find
9 10
 install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
10 11
 setenv =
11 12
    VIRTUAL_ENV={envdir}
@@ -33,7 +34,9 @@ commands =
33 34
   sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
34 35
 
35 36
 [testenv:debug]
36
-commands = oslo_debug_helper {posargs}
37
+commands =
38
+    find . -type f -name "*.pyc" -delete
39
+    oslo_debug_helper -t muranopkgcheck/tests {posargs}
37 40
 
38 41
 [flake8]
39 42
 # E123, E125 skipped as they are invalid PEP-8.

Loading…
Cancel
Save