test suite: make test work for non-dynbot users on Linux and OS X

time-shift
Houtan Bastani 2015-09-17 11:30:10 +02:00
parent b28f9ef0b3
commit 9d81916b82
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,12 @@
#!/bin/bash
DATE=`date +%Y%m%d`
CSVDIR="/home/dynbot/testSuiteTiming"
if [[ "$unamestr" == 'Linux' ]]; then
CSVDIR="/home/$USER/testSuiteTiming"
else
CSVDIR="/Users/$USER/testSuiteTiming"
fi
if [ ! -d $CSVDIR ]; then
mkdir -p $CSVDIR
fi