app-metrics/mysqld_exporter: Add new ebuild.
Package-Manager: Portage-3.0.4, Repoman-3.0.1
This commit is contained in:
parent
5e9373cc0c
commit
fdebf6252b
4 changed files with 113 additions and 1 deletions
|
@ -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"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue