mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	 2da113129a
			
		
	
	2da113129a
	
	
	
		
			
			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.
		
			
				
	
	
		
			25 lines
		
	
	
		
			490 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 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 "$*"
 |