1
1
# -*- cperl -*-
2
- # # Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
3
- # #
4
- # # This program is free software; you can redistribute it and/or modify
5
- # # it under the terms of the GNU General Public License as published by
6
- # # the Free Software Foundation; version 2 of the License.
7
- # #
8
- # # This program is distributed in the hope that it will be useful,
9
- # # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # # GNU General Public License for more details.
12
- # #
13
- # # You should have received a copy of the GNU General Public License
14
- # # along with this program; if not, write to the Free Software
15
- # # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2
+ # Copyright (c) 2005, 2013, 2014, Oracle and/or its affiliates. All rights reserved.
3
+ #
4
+ # This program is free software; you can redistribute it and/or modify
5
+ # it under the terms of the GNU General Public License as published by
6
+ # the Free Software Foundation; version 2 of the License.
16
7
#
17
- # # This is a library file used by the Perl version of mysql-test-run,
18
- # # and is part of the translation of the Bourne shell script with the
19
- # # same name.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
20
12
#
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16
+ #
17
+ # This is a library file used by the Perl version of mysql-test-run,
18
+ # and is part of the translation of the Bourne shell script with the
19
+ # same name.
20
+
21
21
package mtr_cases_from_list ;
22
22
use strict;
23
23
use mtr_report;
@@ -36,6 +36,9 @@ sub collect_test_cases_from_list ($$$$) {
36
36
my $opt_do_test_list = shift ;
37
37
my $opt_ctest = shift ;
38
38
my $ret = 0;
39
+ if ($opt_do_test_list ne " " ) {
40
+ $opt_do_test_list =~ s / ^\~\/ / $ENV {HOME}\/ / ;
41
+ }
39
42
open (FILE, " <" , $opt_do_test_list ) or $ret = 1;
40
43
if ($ret ) {
41
44
mtr_report(" Cannot open \" $opt_do_test_list \" ." );
0 commit comments