diff options
author | monty@donna.mysql.fi <> | 2001-03-12 01:13:07 +0200 |
---|---|---|
committer | monty@donna.mysql.fi <> | 2001-03-12 01:13:07 +0200 |
commit | 2505d667c75166067aef0fbbbe33f1e680c87560 (patch) | |
tree | e8f2ac6fd4e8357ee12ec7bfd8d30a6c93a1f1c5 /sql-bench/run-all-tests.sh | |
parent | 26a8c8b82345499917f657cd427c53552a92ed59 (diff) | |
download | mariadb-git-2505d667c75166067aef0fbbbe33f1e680c87560.tar.gz |
Fixes for compiling innobase
Diffstat (limited to 'sql-bench/run-all-tests.sh')
-rw-r--r-- | sql-bench/run-all-tests.sh | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/sql-bench/run-all-tests.sh b/sql-bench/run-all-tests.sh index cbcafce3117..31d48c837df 100644 --- a/sql-bench/run-all-tests.sh +++ b/sql-bench/run-all-tests.sh @@ -36,11 +36,6 @@ use DBI; $opt_silent=1; # Don't write header -$prog_args=""; -foreach $arg (@ARGV) -{ - $prog_args.="'" . $arg . "' "; -} chomp($pwd = `pwd`); $pwd = "." if ($pwd eq ''); require "$pwd/bench-init.pl" || die "Can't read Configuration file: $!\n"; @@ -50,6 +45,20 @@ $machine=machine(); $redirect= !($machine =~ /windows/i || $machine =~ "^NT\s") ? "2>&1" : ""; $dir= ($pwd =~ /\\/) ? '\\' : '/'; # directory symbol for shell +$prog_args=""; +foreach $arg (@ARGV) +{ + if ($redirect) + { + $prog_args.="'" . $arg . "' "; + } + else + { + # Windows/NT can't handle ' around arguments + $prog_args.=$arg . " "; + } +} + $prog_count=$errors=0; if ($opt_cmp) { |