From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1554948-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 844F015814C
	for <garchives@archives.gentoo.org>; Sat, 16 Sep 2023 09:27:35 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C8D512BC050;
	Sat, 16 Sep 2023 09:27:34 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 908922BC050
	for <gentoo-commits@lists.gentoo.org>; Sat, 16 Sep 2023 09:27:34 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id D687F335D2F
	for <gentoo-commits@lists.gentoo.org>; Sat, 16 Sep 2023 09:27:33 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 2733711C2
	for <gentoo-commits@lists.gentoo.org>; Sat, 16 Sep 2023 09:27:31 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1694856394.4b8419ef52307b82053aafc0f3dd644d1ab6f11f.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/mysql2/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-ruby/mysql2/mysql2-0.5.5.ebuild
X-VCS-Directories: dev-ruby/mysql2/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 4b8419ef52307b82053aafc0f3dd644d1ab6f11f
X-VCS-Branch: master
Date: Sat, 16 Sep 2023 09:27:31 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: c5ce03e4-26f9-4900-bc1d-6dfe92761113
X-Archives-Hash: 0be34f8a2367e52a75103f8520ccd080

commit:     4b8419ef52307b82053aafc0f3dd644d1ab6f11f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 16 09:26:17 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 16 09:26:34 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b8419ef

dev-ruby/mysql2: cleanup test logic

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-ruby/mysql2/mysql2-0.5.5.ebuild | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/dev-ruby/mysql2/mysql2-0.5.5.ebuild b/dev-ruby/mysql2/mysql2-0.5.5.ebuild
index 5ec2338a5603..4d547f2ee9fa 100644
--- a/dev-ruby/mysql2/mysql2-0.5.5.ebuild
+++ b/dev-ruby/mysql2/mysql2-0.5.5.ebuild
@@ -57,13 +57,11 @@ each_ruby_configure() {
 each_ruby_test() {
 	local -x USER=$(whoami)
 
-	if use mariadb ; then
-		local -x PATH="${BROOT}/usr/share/mariadb/scripts:${PATH}"
-	fi
-
 	einfo "Creating mysql test instance ..."
 	mkdir -p "${T}"/mysql || die
 	if use mariadb ; then
+		local -x PATH="${BROOT}/usr/share/mariadb/scripts:${PATH}"
+
 		mysql_install_db \
 			--no-defaults \
 			--auth-root-authentication-method=normal \
@@ -79,7 +77,6 @@ each_ruby_test() {
 	fi
 
 	einfo "Starting mysql test instance ..."
-	# TODO: random port
 	mysqld \
 		--no-defaults \
 		--character-set-server=utf8 \