aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-03-28 02:39:54 -0400
committerLusheng Ji <lji@research.att.com>2018-03-28 22:43:23 +0000
commit1ee2859001e6f5dd687a455672e88f2e73a56463 (patch)
tree59932099581564428343acf23ed5e732ece7c339 /tox.ini
parent339ca1c5d3c9f138a13ae82c181b001df43645eb (diff)
Fix SONAR reporting
Issue-ID: DCAEGEN2-206 Change-Id: If391162de76fae09fca8d464991c8889c51c2590 Signed-off-by: Lusheng Ji <lji@research.att.com> Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 8 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 4159d31..8d138ea 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
# content of: tox.ini , put in same dir as setup.py
[tox]
-envlist = py27
+envlist = py36
[testenv]
deps=
@@ -9,7 +9,13 @@ deps=
coverage
pytest-cov
setenv =
- PYTHONPATH={toxinidir}
+ PYTHONPATH={toxinidir}/snmptrap:{toxinidir}/snmptrap/mod:{toxinidir}/tests
+ CBS_SIM_JSON={toxinidir}/etc/snmptrapd.json
recreate = True
commands=
+ mkdir -p /tmp/opt/app/snmptrap/logs/
+ mkdir -p /tmp/opt/app/snmptrap/tmp/
+ mkdir -p /tmp/opt/app/snmptrap/etc/
+ mkdir -p /tmp/opt/app/snmptrap/data/
pytest --cov snmptrap --cov-report=xml --cov-report=term tests --verbose
+whitelist_externals = mkdir