From 1ab72b13cdbea40fbe6781b67f162f45215d4e75 Mon Sep 17 00:00:00 2001
From: Jani Nikula <jani@nikula.org>
Date: Mon, 25 Sep 2017 23:38:36 +0300
Subject: [PATCH] test: use source and build paths in T4?0-emacs-*.sh

Make a distinction between source and build directories.
---
 test/T440-emacs-hello.sh | 2 +-
 test/T450-emacs-show.sh  | 2 +-
 test/T460-emacs-tree.sh  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/T440-emacs-hello.sh b/test/T440-emacs-hello.sh
index 76e79593..d23c1fca 100755
--- a/test/T440-emacs-hello.sh
+++ b/test/T440-emacs-hello.sh
@@ -3,7 +3,7 @@
 test_description="emacs notmuch-hello view"
 . $(dirname "$0")/test-lib.sh || exit 1
 
-EXPECTED=$TEST_DIRECTORY/emacs.expected-output
+EXPECTED=$NOTMUCH_SRCDIR/test/emacs.expected-output
 
 add_email_corpus
 
diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh
index 95babb1f..d6aa5b41 100755
--- a/test/T450-emacs-show.sh
+++ b/test/T450-emacs-show.sh
@@ -3,7 +3,7 @@
 test_description="emacs notmuch-show view"
 . $(dirname "$0")/test-lib.sh || exit 1
 
-EXPECTED=$TEST_DIRECTORY/emacs-show.expected-output
+EXPECTED=$NOTMUCH_SRCDIR/test/emacs-show.expected-output
 
 add_email_corpus
 
diff --git a/test/T460-emacs-tree.sh b/test/T460-emacs-tree.sh
index dc597841..0f4e4503 100755
--- a/test/T460-emacs-tree.sh
+++ b/test/T460-emacs-tree.sh
@@ -3,7 +3,7 @@
 test_description="emacs tree view interface"
 . $(dirname "$0")/test-lib.sh || exit 1
 
-EXPECTED=$TEST_DIRECTORY/tree.expected-output
+EXPECTED=$NOTMUCH_SRCDIR/test/tree.expected-output
 
 add_email_corpus
 
-- 
2.45.2