1.1 --- a/tests/test_person_invitation_counter.sh Fri Jan 29 15:31:04 2016 +0100
1.2 +++ b/tests/test_person_invitation_counter.sh Fri Jan 29 16:44:32 2016 +0100
1.3 @@ -1,14 +1,7 @@
1.4 #!/bin/sh
1.5
1.6 -THIS_DIR=`dirname $0`
1.7 +. "`dirname \"$0\"`/common.sh"
1.8
1.9 -TEMPLATES="$THIS_DIR/templates"
1.10 -PERSON_SCRIPT="$THIS_DIR/../imip_person.py"
1.11 -SHOWMAIL="$THIS_DIR/../tools/showmail.py"
1.12 -STORE=/tmp/store
1.13 -STATIC=/tmp/static
1.14 -PREFS=/tmp/prefs
1.15 -ARGS="-S $STORE -P $STATIC -p $PREFS -d"
1.16 USER="mailto:vincent.vole@example.com"
1.17 SENDER="mailto:paul.boddie@example.com"
1.18 FBFILE="$STORE/$USER/freebusy"
1.19 @@ -16,29 +9,6 @@
1.20 FBSENDERFILE="$STORE/$SENDER/freebusy"
1.21 FBSENDEROTHERFILE="$STORE/$SENDER/freebusy-other/$USER"
1.22 FBSENDERREQUESTS="$STORE/$SENDER/requests"
1.23 -TAB=`printf '\t'`
1.24 -
1.25 -OUTGOING_SCRIPT="$THIS_DIR/../imip_person_outgoing.py"
1.26 -
1.27 -PYTHONPATH="$THIS_DIR/.."
1.28 -export PYTHONPATH
1.29 -
1.30 -ACCEPT_SCRIPT="$THIS_DIR/test_handle.py"
1.31 -ACCEPT_ARGS="accept $STORE $PREFS"
1.32 -
1.33 -COUNTER_SCRIPT="$THIS_DIR/test_handle.py"
1.34 -COUNTER_ARGS="counter $STORE $PREFS"
1.35 -
1.36 -DECLINE_SCRIPT="$THIS_DIR/test_handle.py"
1.37 -DECLINE_ARGS="decline $STORE $PREFS"
1.38 -
1.39 -ERROR=err.tmp
1.40 -
1.41 -rm -rf $STORE
1.42 -rm -rf $STATIC
1.43 -rm -rf $PREFS
1.44 -rm -f $ERROR
1.45 -rm -f out*.tmp
1.46
1.47 mkdir -p "$PREFS/$USER"
1.48 echo 'Europe/Oslo' > "$PREFS/$USER/TZID"