summaryrefslogtreecommitdiff
path: root/mysql-test/t/log.sh
blob: 20b265087cce24948af0ba83d30d8a3e60e20c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

###########################################################################

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.log"

shift

log_debug "$*"