]> diplodocus.org Git - nmh/blobdiff - test/inc/test-deb359167
Rearranged test suite environment variables so that individual tests
[nmh] / test / inc / test-deb359167
index 72c6b7f91e9f159d1414411556c1e44e98264a38..d2b2302990709831a30c46981e4952a5e69a4c73 100755 (executable)
@@ -2,11 +2,16 @@
 # Test a variant of a mailbox which caused debian bug 359167.
 set -e
 
-. ${MH_TEST_COMMON}
+if test -z "${MH_OBJ_DIR}"; then
+    srcdir=`dirname $0`/../..
+    MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR
+fi
+
+. "$MH_OBJ_DIR/test/common.sh"
 
 setup_test
 
-THISDIR="${srcdir}/test/inc"
+THISDIR="${MH_OBJ_DIR}/test/inc"
 
 require_prog valgrind