#!/bin/sh -e

mkdir -p $AUTOPKGTEST_TMP/home $AUTOPKGTEST_TMP/xdg $AUTOPKGTEST_TMP/tmp

# try and ensure files are on the same device, since otherwise
# deletion-related tests fail attempting a cross-device rename
# by default, debci seems to place /tmp and $AUTOPKGTEST_TMP on
# different devices
export HOME=$AUTOPKGTEST_TMP/home
export XDG_RUNTIME_DIR=$AUTOPKGTEST_TMP/xdg
export TMPDIR=$AUTOPKGTEST_TMP/tmp
export NOSE_IGNORE_CONFIG_FILES=1

nosetests3 --exclude-dir notebook/tests/selenium
