1.1 --- a/tests/test_person_non_participation.sh Fri Jan 29 15:31:04 2016 +0100
1.2 +++ b/tests/test_person_non_participation.sh Fri Jan 29 16:44:32 2016 +0100
1.3 @@ -1,40 +1,13 @@
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 IMPOSTER="mailto:oliver.otter@example.com"
1.18 SENDER="mailto:paul.boddie@example.com"
1.19 FBFILE="$STORE/$USER/freebusy"
1.20 FBOTHERFILE="$STORE/$USER/freebusy-other/$SENDER"
1.21 FBIMPOSTERFILE="$STORE/$SENDER/freebusy-other/$IMPOSTER"
1.22 -TAB=`printf '\t'`
1.23 -
1.24 -OUTGOING_SCRIPT="$THIS_DIR/../imip_person_outgoing.py"
1.25 -
1.26 -PYTHONPATH="$THIS_DIR/.."
1.27 -export PYTHONPATH
1.28 -
1.29 -ACCEPT_SCRIPT="$THIS_DIR/test_handle.py"
1.30 -ACCEPT_ARGS="accept $STORE $PREFS"
1.31 -
1.32 -DECLINE_SCRIPT="$THIS_DIR/test_handle.py"
1.33 -DECLINE_ARGS="decline $STORE $PREFS"
1.34 -
1.35 -ERROR=err.tmp
1.36 -
1.37 -rm -rf $STORE
1.38 -rm -rf $STATIC
1.39 -rm -rf $PREFS
1.40 -rm -f $ERROR
1.41 -rm -f out*.tmp
1.42
1.43 mkdir -p "$PREFS/$USER"
1.44 echo 'no' > "$PREFS/$USER/participating"