From f0db4fd9013bd8ff8b7c2e8e09f1b66deae81613 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Thu, 24 Aug 2017 00:14:32 +0200 Subject: [PATCH] Enable hddtemp on all platforms (#3153) Also disables dmcache tests on non-linux. --- .../inputs/dmcache/{dmcache_test.go => dmcache_linux_test.go} | 2 ++ plugins/inputs/hddtemp/hddtemp.go | 2 -- plugins/inputs/hddtemp/hddtemp_nocompile.go | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) rename plugins/inputs/dmcache/{dmcache_test.go => dmcache_linux_test.go} (99%) delete mode 100644 plugins/inputs/hddtemp/hddtemp_nocompile.go diff --git a/plugins/inputs/dmcache/dmcache_test.go b/plugins/inputs/dmcache/dmcache_linux_test.go similarity index 99% rename from plugins/inputs/dmcache/dmcache_test.go rename to plugins/inputs/dmcache/dmcache_linux_test.go index c5989c413..bf3e38ca1 100644 --- a/plugins/inputs/dmcache/dmcache_test.go +++ b/plugins/inputs/dmcache/dmcache_linux_test.go @@ -1,3 +1,5 @@ +// +build linux + package dmcache import ( diff --git a/plugins/inputs/hddtemp/hddtemp.go b/plugins/inputs/hddtemp/hddtemp.go index ac11218dd..dd4622df4 100644 --- a/plugins/inputs/hddtemp/hddtemp.go +++ b/plugins/inputs/hddtemp/hddtemp.go @@ -1,5 +1,3 @@ -// +build linux - package hddtemp import ( diff --git a/plugins/inputs/hddtemp/hddtemp_nocompile.go b/plugins/inputs/hddtemp/hddtemp_nocompile.go deleted file mode 100644 index 0c5801670..000000000 --- a/plugins/inputs/hddtemp/hddtemp_nocompile.go +++ /dev/null @@ -1,3 +0,0 @@ -// +build !linux - -package hddtemp