Skip to content

Commit 952f330

Browse files
committed
Bug#35254810 Bump the server version on mysql-trunk from 8.0 to 8.1
Additional fix for ndb.clusterj test. Test ndb.clusterj failed with RPM and DEB builds due to search path still referring to share/mysql-8.0/java. Fixed by let test detect and use MySQL base version when adding search path. Change-Id: Idb5cedfe84b13a20d20525165eb66e4201328c0b
1 parent 4631377 commit 952f330

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

mysql-test/suite/ndb/include/have_clusterj.inc

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
let MYSQL_BASE_VERSION=`SELECT SUBSTRING_INDEX(VERSION(), ".", 2)`;
12
--perl
23
use strict;
34

@@ -38,21 +39,22 @@ my $clusterj_jar = my_find_file($bindir,
3839
[ "storage/ndb/clusterj",
3940
"share/java",
4041
"share/mysql/java",
41-
"share/mysql-8.0/java",
42+
"share/mysql-$ENV{MYSQL_BASE_VERSION}/java",
4243
"lib/java"
4344
],
4445
"clusterj-$version.jar",
4546
NOT_REQUIRED);
4647

47-
my $clusterj_test_jar = my_find_file($bindir,
48-
[ "storage/ndb/clusterj/clusterj-test",
49-
"share/java",
50-
"share/mysql/java",
51-
"share/mysql-8.0/java",
52-
"lib/java"
53-
],
54-
"clusterj-test-$version.jar",
55-
NOT_REQUIRED);
48+
my $clusterj_test_jar =
49+
my_find_file($bindir,
50+
[ "storage/ndb/clusterj/clusterj-test",
51+
"share/java",
52+
"share/mysql/java",
53+
"share/mysql-$ENV{MYSQL_BASE_VERSION}/java",
54+
"lib/java"
55+
],
56+
"clusterj-test-$version.jar",
57+
NOT_REQUIRED);
5658

5759
# The expected installation locations are lib, lib/mysql, lib64/mysql, lib/x86_64-linux-gnu
5860
my $ndbclient_lib = my_find_file($bindir,

0 commit comments

Comments
 (0)