From: David Levine Date: Mon, 17 Sep 2012 04:12:19 +0000 (-0500) Subject: For the mhstore -clobber test, cd to the Mail subdirectory so that X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=0ecdc197e9a9a4d2bb6dce395dea152fbc728b6b;p=mmh For the mhstore -clobber test, cd to the Mail subdirectory so that the stored files will get cleaned up by the exit trap in common.sh. --- diff --git a/docs/README.developers b/docs/README.developers index 9038cd2..a66e6e8 100644 --- a/docs/README.developers +++ b/docs/README.developers @@ -14,11 +14,12 @@ commit checklist 1. code updated? 2. test added? -3. man page and other documentation updated? -4. docs/pending-release-notes updated? -5. should commit message reference bug report? -6. update/close bug report (with commit id)? -7. notify nmh-users? +3. make distcheck passed? +4. man page and other documentation updated? +5. docs/pending-release-notes updated? +6. should commit message reference bug report? +7. update/close bug report (with commit id)? +8. notify nmh-users? ------------------------- diff --git a/test/mhstore/test-mhstore b/test/mhstore/test-mhstore index 421580b..3dde1ca 100755 --- a/test/mhstore/test-mhstore +++ b/test/mhstore/test-mhstore @@ -239,6 +239,9 @@ EOF run_test 'mhstore last' 'storing message 15 as file 15.txt' check $expected 15.txt +# cd into Mail directory because it gets cleaned up by the exit trap. +cd Mail + # check -clobber always folder +inbox 7 > /dev/null touch 7.txt @@ -247,7 +250,8 @@ This is message number 7 EOF run_test 'mhstore' 'storing message 7 as file 7.txt' check $expected 7.txt 'keep first' -run_test 'mhstore -clobber always' 'storing message 7 as file 7.txt' +run_test 'mhstore -clobber ask -clobber always' \ + 'storing message 7 as file 7.txt' check $expected 7.txt 'keep first' # check -clobber auto @@ -276,7 +280,7 @@ mhstore -clobber never >/dev/null 2>&1 run_test "echo $?" 1 set -e -/bin/rm -f 7.txt 7-1.txt 7.txt.1 +cd .. # check with relative nmh-storage profile component storagedir=storagedir