summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/diamond/diamond-4.0.515.ebuild')
-rw-r--r--app-admin/diamond/diamond-4.0.515.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/app-admin/diamond/diamond-4.0.515.ebuild b/app-admin/diamond/diamond-4.0.515.ebuild
index a10298e45b41..6c874d48ed22 100644
--- a/app-admin/diamond/diamond-4.0.515.ebuild
+++ b/app-admin/diamond/diamond-4.0.515.ebuild
@@ -32,7 +32,10 @@ RDEPEND="dev-python/configobj
redis? ( dev-python/redis-py )
!kernel_linux? ( >=dev-python/psutil-3 )"
DEPEND="${RDEPEND}
- test? ( dev-python/mock )"
+ test? (
+ dev-python/mock
+ dev-python/pysnmp
+ )"
src_prepare() {
# adjust for Prefix
@@ -48,6 +51,10 @@ src_prepare() {
}
python_test() {
+ # don't want to depend on docker for just this
+ mv src/collectors/docker_collector/test/{test,no}docker_collector.py || die
+ # fails on binding ports
+ mv src/collectors/portstat/tests/{test,no}_portstat.py || die
"${PYTHON}" ./test.py || die "Tests fail with ${PYTHON}"
}