From 9877d61811037520c0871813a9a2fb977416554f Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Dec 03 2012 19:18:07 +0000 Subject: fix for possible 'hostname' difference between C5 and C6 --- diff --git a/tests/p_mysql/mysqld_conn_test.sh b/tests/p_mysql/mysqld_conn_test.sh index 8836de9..25ce173 100755 --- a/tests/p_mysql/mysqld_conn_test.sh +++ b/tests/p_mysql/mysqld_conn_test.sh @@ -1,8 +1,8 @@ #!/bin/sh t_Log "Running $0 - mysqld client can talk to mysql server." -HostName=$(hostname --fqdn) -MySqlHostName=$(mysql -N -B -u root -e "show variables like 'hostname'" | cut -f 2) +HostName=$(hostname -s) +MySqlHostName=$(mysql -N -B -u root -e "show variables like 'hostname'" | cut -f 2 | cut -d . -f 1) if [ $HostName = ${MySqlHostName} ]; then ret_val=0 else