mirror of
https://github.com/MariaDB/server.git
synced 2025-02-25 14:53:09 +01:00

Log messages from shell-scripts were put to var/log/<test id>.log file. Now, this file is used by mysql-test-run.pl. So, move log messages to var/log/<test id>.script.log.
24 lines
490 B
Bash
Executable file
24 lines
490 B
Bash
Executable file
#!/bin/sh
|
|
|
|
###########################################################################
|
|
|
|
basename=`basename "$0"`
|
|
dirname=`dirname "$0"`
|
|
|
|
###########################################################################
|
|
|
|
. "$dirname/utils.sh"
|
|
|
|
###########################################################################
|
|
|
|
if [ $# -lt 2 ]; then
|
|
echo "Usage: $basename <test id> log message ..."
|
|
exit 1
|
|
fi
|
|
|
|
test_id="$1"
|
|
log_file="$MYSQLTEST_VARDIR/log/$test_id.script.log"
|
|
|
|
shift
|
|
|
|
log_debug "$*"
|