@@ -12,11 +12,17 @@ minversion = 2.9
12
12
13
13
[testenv]
14
14
description = " Scapy unit tests"
15
- whitelist_externals = sudo
15
+ allowlist_externals = sudo
16
16
parallel_show_output = true
17
- passenv = PATH PWD PROGRAMFILES WINDIR SYSTEMROOT OPENSSL_CONF
18
- # Used by scapy
19
- SCAPY_USE_LIBPCAP
17
+ passenv =
18
+ PATH
19
+ PWD
20
+ PROGRAMFILES
21
+ WINDIR
22
+ SYSTEMROOT
23
+ OPENSSL_CONF
24
+ # Used by scapy
25
+ SCAPY_USE_LIBPCAP
20
26
deps = mock
21
27
# cryptography requirements
22
28
setuptools>=18.5
@@ -43,12 +49,17 @@ commands =
43
49
44
50
[testenv:py38-isotp_kernel_module]
45
51
description = " Scapy unit tests - ISOTP Linux kernel module"
46
- whitelist_externals = sudo
52
+ allowlist_externals = sudo
47
53
git
48
54
bash
49
55
lsmod
50
56
modprobe
51
- passenv = PATH PWD PROGRAMFILES WINDIR SYSTEMROOT
57
+ passenv =
58
+ PATH
59
+ PWD
60
+ PROGRAMFILES
61
+ WINDIR
62
+ SYSTEMROOT
52
63
deps = {[testenv]deps}
53
64
commands =
54
65
sudo apt-get -qy install build-essential linux-headers-$(uname -r) linux-modules-extra-$(uname -r)
@@ -75,7 +86,13 @@ commands =
75
86
76
87
[testenv:codecov]
77
88
description = " Upload coverage results to codecov"
78
- passenv = TOXENV CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*
89
+ passenv =
90
+ TOXENV
91
+ CI
92
+ TRAVIS
93
+ TRAVIS_*
94
+ APPVEYOR
95
+ APPVEYOR_*
79
96
deps = codecov
80
97
commands = codecov -e TOXENV
81
98
@@ -84,7 +101,7 @@ commands = codecov -e TOXENV
84
101
[testenv:apitree]
85
102
description = " Regenerates the API reference doc tree"
86
103
skip_install = true
87
- changedir = doc/scapy
104
+ changedir = {toxinidir}/ doc/scapy
88
105
deps = sphinx
89
106
commands =
90
107
sphinx-apidoc -f --no-toc -d 1 --separate --module-first --templatedir =_templates --output-dir api ../../scapy ../../scapy/modules/ ../../scapy/libs/ ../../scapy/tools/ ../../scapy/arch/ ../../scapy/contrib/scada/* ../../scapy/all.py ../../scapy/layers/all.py ../../scapy/compat.py
@@ -103,7 +120,7 @@ commands = python .config/mypy/mypy_check.py linux
103
120
[testenv:docs]
104
121
description = " Build the docs"
105
122
skip_install = true
106
- changedir = doc/scapy
123
+ changedir = {toxinidir}/ doc/scapy
107
124
deps = sphinx>=2.4.2
108
125
sphinx_rtd_theme
109
126
commands =
@@ -114,7 +131,7 @@ commands =
114
131
[testenv:docs2]
115
132
description = " Build the docs without rebuilding the API tree"
116
133
skip_install = true
117
- changedir = doc/scapy
134
+ changedir = {toxinidir}/ doc/scapy
118
135
deps = {[testenv:docs]deps}
119
136
setenv =
120
137
SCAPY_APITREE = 0
0 commit comments