From: David Levine Date: Sun, 19 Feb 2017 19:00:04 +0000 (-0500) Subject: Suppress getcanon exit status check. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/2a6df06eae308f5cdde1b5fb0d004a60a1b0ebe5?hp=57b69f8f9204cde25e33e310d22f76fd42963fb8 Suppress getcanon exit status check. To allow tests to run when the local hostname doesn't resolve. --- diff --git a/test/format/test-myhost b/test/format/test-myhost index cb82846a..fd0db89d 100755 --- a/test/format/test-myhost +++ b/test/format/test-myhost @@ -13,7 +13,9 @@ fi setup_test +set +e host=`${MH_OBJ_DIR}/test/getcanon` +set -e run_test "${MH_LIBEXEC_DIR}/ap -format %(myhost) ignore" "$host" \ "local hostname test" diff --git a/test/format/test-mymbox b/test/format/test-mymbox index 42f584c1..a8f21dcb 100755 --- a/test/format/test-mymbox +++ b/test/format/test-mymbox @@ -18,7 +18,9 @@ setup_test #### suite, or the user's login name. ap will escape (quote) it if #### needed. user=`run_prog ${MH_LIBEXEC_DIR}/ap -format '%(me)' 0` +set +e host=`${MH_OBJ_DIR}/test/getcanon` +set -e output=`run_prog ${MH_LIBEXEC_DIR}/ap -format '%(mymbox{text})' "${user}"` run_test "echo $output" 1 "Basic user test"