File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
# !/usr/bin/perl
2
2
# -*- cperl -*-
3
3
4
- # Copyright (c) 2004, 2017 , Oracle and/or its affiliates. All rights reserved.
4
+ # Copyright (c) 2004, 2018 , Oracle and/or its affiliates. All rights reserved.
5
5
#
6
6
# This program is free software; you can redistribute it and/or modify
7
7
# it under the terms of the GNU General Public License as published by
@@ -2388,6 +2388,7 @@ sub environment_setup {
2388
2388
$ENV {' DEFAULT_MASTER_PORT' }= $mysqld_variables {' port' };
2389
2389
$ENV {' MYSQL_TMP_DIR' }= $opt_tmpdir ;
2390
2390
$ENV {' MYSQLTEST_VARDIR' }= $opt_vardir ;
2391
+ $ENV {' MYSQL_TEST_DIR_ABS' }= getcwd();
2391
2392
$ENV {' MYSQL_BINDIR' }= " $bindir " ;
2392
2393
$ENV {' MYSQL_SHAREDIR' }= $path_language ;
2393
2394
$ENV {' MYSQL_CHARSETSDIR' }= $path_charsetsdir ;
Original file line number Diff line number Diff line change @@ -13,19 +13,21 @@ exec $MYSQLD --defaults-file=/path/with/no/extension --print-defaults 2>&1;
13
13
--error 1
14
14
exec $MYSQLD --defaults-file=/path/with.ext --print-defaults 2>&1;
15
15
16
- --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
16
+ # Using $MYSQL_TEST_DIR_ABS which contains canonical path to the
17
+ # test directory since --print-default prints the absolute path.
18
+ --replace_result $MYSQL_TEST_DIR_ABS MYSQL_TEST_DIR
17
19
--error 1
18
20
exec $MYSQLD --defaults-file=relative/path/with.ext --print-defaults 2>&1;
19
21
20
- --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
22
+ --replace_result $MYSQL_TEST_DIR_ABS MYSQL_TEST_DIR
21
23
--error 1
22
24
exec $MYSQLD --defaults-file=relative/path/without/extension --print-defaults 2>&1;
23
25
24
- --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
26
+ --replace_result $MYSQL_TEST_DIR_ABS MYSQL_TEST_DIR
25
27
--error 1
26
28
exec $MYSQLD --defaults-file=with.ext --print-defaults 2>&1;
27
29
28
- --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
30
+ --replace_result $MYSQL_TEST_DIR_ABS MYSQL_TEST_DIR
29
31
--error 1
30
32
exec $MYSQLD --defaults-file=no_extension --print-defaults 2>&1;
31
33
You can’t perform that action at this time.
0 commit comments