mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
ndb - autotest
small script fixes - Don't use hostname -s as it's linux specific - Don't remove result unless scp worked ndb/test/run-test/ndb-autotest.sh: Don't use hostname -s as it's linux specific Don't remove result unless scp worked
This commit is contained in:
parent
b854d06bf0
commit
af0287be3c
1 changed files with 5 additions and 2 deletions
|
@ -13,7 +13,7 @@ save_args=$*
|
|||
VERSION="ndb-autotest.sh version 1.04"
|
||||
|
||||
DATE=`date '+%Y-%m-%d'`
|
||||
HOST=`hostname -s`
|
||||
HOST=`hostname`
|
||||
export DATE HOST
|
||||
|
||||
set -e
|
||||
|
@ -330,7 +330,10 @@ start(){
|
|||
tar cfz /tmp/res.$2.$$.tgz `basename $p2`/$DATE
|
||||
scp /tmp/res.$2.$$.tgz \
|
||||
$result_host:$result_path/res.$DATE.$HOST.$2.$$.tgz
|
||||
rm -f /tmp/res.$2.$$.tgz
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
rm -f /tmp/res.$2.$$.tgz
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue