summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-07-07 02:30:46 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-07-07 02:30:46 +0200
commit966c57cc09de18a22adeafe6bcac336e1e8dcb72 (patch)
treeb2aec893943aa327e59ee2a9cd76498bbd4e61ae /app-metrics/mysqld_exporter
parentapp-metrics/mysqld_exporter: bump to v0.12.1 snapshot from 2020-06-22 (diff)
downloadgentoo-966c57cc09de18a22adeafe6bcac336e1e8dcb72.tar.gz
gentoo-966c57cc09de18a22adeafe6bcac336e1e8dcb72.tar.bz2
gentoo-966c57cc09de18a22adeafe6bcac336e1e8dcb72.zip
app-metrics/mysqld_exporter: skip impossible tests
Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'app-metrics/mysqld_exporter')
-rw-r--r--app-metrics/mysqld_exporter/files/mysqld_exporter-0.12.1-skip-tests.patch22
-rw-r--r--app-metrics/mysqld_exporter/mysqld_exporter-0.12.1_p20200622.ebuild2
2 files changed, 24 insertions, 0 deletions
diff --git a/app-metrics/mysqld_exporter/files/mysqld_exporter-0.12.1-skip-tests.patch b/app-metrics/mysqld_exporter/files/mysqld_exporter-0.12.1-skip-tests.patch
new file mode 100644
index 000000000000..ea59067cb288
--- /dev/null
+++ b/app-metrics/mysqld_exporter/files/mysqld_exporter-0.12.1-skip-tests.patch
@@ -0,0 +1,22 @@
+--- a/collector/exporter_test.go
++++ b/collector/exporter_test.go
+@@ -71,6 +71,8 @@ func TestExporter(t *testing.T) {
+ }
+
+ func TestGetMySQLVersion(t *testing.T) {
++ t.Skip("Test requires running mysqld")
++
+ if testing.Short() {
+ t.Skip("-short is passed, skipping test")
+ }
+--- a/mysqld_exporter_test.go
++++ b/mysqld_exporter_test.go
+@@ -142,6 +142,8 @@ type bin struct {
+
+ // TestBin builds, runs and tests binary.
+ func TestBin(t *testing.T) {
++ t.Skip("Test requires network access")
++
+ var err error
+ binName := "mysqld_exporter"
+
diff --git a/app-metrics/mysqld_exporter/mysqld_exporter-0.12.1_p20200622.ebuild b/app-metrics/mysqld_exporter/mysqld_exporter-0.12.1_p20200622.ebuild
index 80f98b838622..5ba0eed69959 100644
--- a/app-metrics/mysqld_exporter/mysqld_exporter-0.12.1_p20200622.ebuild
+++ b/app-metrics/mysqld_exporter/mysqld_exporter-0.12.1_p20200622.ebuild
@@ -28,6 +28,8 @@ RDEPEND="${DEPEND}"
# Comment this for a normal release.
S="${WORKDIR}/${PN}-${MY_PV}"
+PATCHES=( "${FILESDIR}"/${PN}-0.12.1-skip-tests.patch )
+
src_prepare() {
default