]> git.marmaro.de Git - mmh/blobdiff - test/tests/whatnow/test-attach-detach
tests: Adjusted most of the tests to mmh.
[mmh] / test / tests / whatnow / test-attach-detach
index 1a36d8d60d33c4f07dc4e06ac1674c774532f592..8932bc3f82b91e4face86060f9fc43f3b4df551a 100644 (file)
@@ -12,7 +12,8 @@ cd "$MH_TEST_DIR"
 rm -f "baz's boz"
 touch "baz's boz"
 # whatnow's attach stuff needs a draft to work on
-cp "$MH_TEST_DIR/Mail/inbox/1" "$MH_TEST_DIR/Mail/draft"
+# cp "$MH_TEST_DIR/Mail/inbox/1" "$MH_TEST_DIR/Mail/draft"
+comp +inbox 1 -whatnow true
 
 expectederr=$MH_TEST_DIR/$$.expectederr
 actualerr=$MH_TEST_DIR/$$.actualerr
@@ -28,10 +29,10 @@ EOF
 
 # whatnow's exit status is always 1 so that is not a failure
 set +e
-echo "attach baz\\'s\\ boz" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
-echo "alist" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
-echo "detach baz\\'s\\ boz" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
-echo "alist" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
+echo "attach baz\\'s\\ boz" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
+echo "alist" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
+echo "detach baz\\'s\\ boz" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
+echo "alist" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
 set -e
 
 diff -u $expectederr $actualerr