Fix log file directory

This commit is contained in:
12b 2021-01-12 18:44:53 +01:00
parent a51c533126
commit 5729a67218
2 changed files with 8 additions and 4 deletions

View File

@ -19,8 +19,10 @@ if [[ $# -lt 1 ]] ; then
exit 1
fi
mkdir -p ~/sbc-performance-test-kit/benchmark
LOGFILE="~/sbc-performance-test-kit/benchmark/full_test_$1_$(hostname)-$(date '+%Y-%m-%d_%H-%M-%S').log"
SCRIPTDIR=$(dirname $0)/..
REPODIR=$(readlink -f $SCRIPTDIR/..)
mkdir -p $REPODIR/sbc-performance-test-kit/benchmark
LOGFILE="$REPODIR/sbc-performance-test-kit/benchmark/full_test_$1_$(hostname)-$(date '+%Y-%m-%d_%H-%M-%S').log"
echo ' '
echo "#### Starting benchmark ####" | tee $LOGFILE

View File

@ -16,8 +16,10 @@ if [[ $# -lt 1 ]] ; then
exit 1
fi
mkdir -p ~/sbc-performance-test-kit/benchmark
LOGFILE="~/sbc-performance-test-kit/benchmark/quick_test_$1_$(hostname)-$(date '+%Y-%m-%d_%H-%M-%S').log"
SCRIPTDIR=$(dirname $0)/..
REPODIR=$(readlink -f $SCRIPTDIR/..)
mkdir -p $REPODIR/sbc-performance-test-kit/benchmark
LOGFILE="$REPODIR/sbc-performance-test-kit/benchmark/quick_test_$1_$(hostname)-$(date '+%Y-%m-%d_%H-%M-%S').log"
echo ' '
echo "#### Starting benchmark ####" | tee $LOGFILE