From 5729a6721884913e8769e39115b244bd10f546b6 Mon Sep 17 00:00:00 2001 From: 12b Date: Tue, 12 Jan 2021 18:44:53 +0100 Subject: [PATCH] Fix log file directory --- bin/run-full-benchmark.sh | 6 ++++-- bin/run-quick-benchmark.sh | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bin/run-full-benchmark.sh b/bin/run-full-benchmark.sh index c3f6f8f..22c8a25 100755 --- a/bin/run-full-benchmark.sh +++ b/bin/run-full-benchmark.sh @@ -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 diff --git a/bin/run-quick-benchmark.sh b/bin/run-quick-benchmark.sh index e0961b6..2b47053 100755 --- a/bin/run-quick-benchmark.sh +++ b/bin/run-quick-benchmark.sh @@ -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