public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/mysqld_exporter/files/, app-metrics/mysqld_exporter/
Date: Tue,  7 Jul 2020 00:31:04 +0000 (UTC)	[thread overview]
Message-ID: <1594081846.966c57cc09de18a22adeafe6bcac336e1e8dcb72.whissi@gentoo> (raw)

commit:     966c57cc09de18a22adeafe6bcac336e1e8dcb72
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  7 00:30:46 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Tue Jul  7 00:30:46 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=966c57cc

app-metrics/mysqld_exporter: skip impossible tests

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 .../files/mysqld_exporter-0.12.1-skip-tests.patch  | 22 ++++++++++++++++++++++
 .../mysqld_exporter-0.12.1_p20200622.ebuild        |  2 ++
 2 files changed, 24 insertions(+)

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 00000000000..ea59067cb28
--- /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 80f98b83862..5ba0eed6995 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
 


             reply	other threads:[~2020-07-07  0:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-07  0:31 Thomas Deutschmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-10-09 12:17 [gentoo-commits] repo/gentoo:master commit in: app-metrics/mysqld_exporter/files/, app-metrics/mysqld_exporter/ Thomas Deutschmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1594081846.966c57cc09de18a22adeafe6bcac336e1e8dcb72.whissi@gentoo \
    --to=whissi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox