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