Skip to content

Commit

Permalink
Use File::Which to see if mysql is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
charsbar authored and andk committed Apr 25, 2024
1 parent 3597ddd commit 6414835
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion t/pause_2017/lib/Test/PAUSE/MySQL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package Test::PAUSE::MySQL;

use Test::Builder ();
use Test::Requires qw(Test::mysqld);
use Test::Requires qw(File::Which);

BEGIN {
unless (-e '/usr/local/mysql/bin/mysql') {
unless (File::Which::which 'mysql') {
Test::Builder->new->skip_all("no mysql found, needed for this test")
}
}
Expand Down
3 changes: 2 additions & 1 deletion t/run_test_class_tests.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ use strict;
use warnings;

use Test::Requires qw(Test::mysqld);
use Test::Requires qw(File::Which);

BEGIN {
unless (-e '/usr/local/mysql/bin/mysql') {
unless (File::Which::which 'mysql') {
Test::Builder->new->skip_all("no mysql found, needed for this test")
}
}
Expand Down

0 comments on commit 6414835

Please sign in to comment.