While join(1) is POSIX, busybox on Alpine 3.19.0 does not
provide its functionality.  So just skip tests for now since
it's too much trouble to provide a workaround for an otherwise
common POSIX command.
---
 t/cindex-join.t |  1 +
 t/cindex.t      | 11 ++++++-----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/t/cindex-join.t b/t/cindex-join.t
index c2e85332..22c67107 100644
--- a/t/cindex-join.t
+++ b/t/cindex-join.t
@@ -11,6 +11,7 @@ use PublicInbox::Config;
 use autodie;
 use File::Spec;
 $ENV{TEST_REMOTE_JOIN} or plan skip_all => 'TEST_REMOTE_JOIN unset';
+require_cmd 'join';
 local $ENV{TAIL_ALL} = $ENV{TAIL_ALL} // 1; # while features are unstable
 require_mods(qw(json Xapian DBD::SQLite +SCM_RIGHTS));
 my @code = qw(https://80x24.org/mwrap-perl.git
diff --git a/t/cindex.t b/t/cindex.t
index 15c860e1..ab4cde7c 100644
--- a/t/cindex.t
+++ b/t/cindex.t
@@ -247,11 +247,12 @@ SKIP: {
        ok(run_script([qw(-xcpdb --compact), "$tmp/ext"]), 'xcpdb compact');
 };
 
-my $basic = create_inbox 'basic', indexlevel => 'basic', sub {
-       my ($im, $ibx) = @_;
-       $im->add(eml_load('t/plack-qp.eml'));
-};
-{
+SKIP: {
+       require_cmd('join', 1);
+       my $basic = create_inbox 'basic', indexlevel => 'basic', sub {
+               my ($im, $ibx) = @_;
+               $im->add(eml_load('t/plack-qp.eml'));
+       };
        my $env = { PI_CONFIG => "$tmp/pi_config" };
        PublicInbox::IO::write_file '>', $env->{PI_CONFIG}, <<EOM;
 [publicinbox "basictest"]

Reply via email to