From 8e4c1d2c9112ac3d78238195a79f492a395ac034 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 27 Dec 2014 11:25:48 -0600 Subject: [PATCH] Changed direct access to etc files in a couple of tests to be the installed (for the test) versions, not the copies made by common.sh. --- test/format/test-fmtdump | 2 +- test/mhfixmsg/test-mhfixmsg | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/format/test-fmtdump b/test/format/test-fmtdump index b10374c1..5680a5b1 100755 --- a/test/format/test-fmtdump +++ b/test/format/test-fmtdump @@ -110,7 +110,7 @@ run_prog $fmtdump >$actual 2>&1 check $expected $actual 'keep first' # check -form -run_prog $fmtdump -form "$MH_TEST_DIR/Mail/scan.default" >$actual 2>&1 +run_prog $fmtdump -form "$MH_INST_DIR${nmhetcdir}/scan.default" >$actual 2>&1 check $expected $actual # check -format diff --git a/test/mhfixmsg/test-mhfixmsg b/test/mhfixmsg/test-mhfixmsg index a7932352..b8e0b426 100755 --- a/test/mhfixmsg/test-mhfixmsg +++ b/test/mhfixmsg/test-mhfixmsg @@ -25,10 +25,12 @@ expected_err="$MH_TEST_DIR/test-mhfixmsg$$.expected_err" actual="$MH_TEST_DIR/test-mhfixmsg$$.actual" actual_err="$MH_TEST_DIR/test-mhfixmsg$$.actual_err" -if grep mhfixmsg-format-text/html "${MH_TEST_DIR}/Mail/mhn.defaults" \ +mhn_defaults="$MH_INST_DIR${nmhetcdir}/mhn.defaults" + +if grep mhfixmsg-format-text/html "${mhn_defaults}" \ >/dev/null; then can_reformat_texthtml=1 - if grep 'mhfixmsg-format-text/html.*w3m' "${MH_TEST_DIR}/Mail/mhn.defaults" \ + if grep 'mhfixmsg-format-text/html.*w3m' "${mhn_defaults}" \ >/dev/null; then #### w3m uses $HOME/.w3m/, and creates it if it doesn't exist. To #### support testing with non-writeable $HOME, and to not leave -- 2.56.0