]> git.notmuchmail.org Git - notmuch/blobdiff - test/T490-parse-time-string.sh
emacs: Add new option notmuch-search-hide-excluded
[notmuch] / test / T490-parse-time-string.sh
index ab90fcc5a76d444c831843d681c2499afc936c2e..3b6e48c42aefe040ec926c1e634bab3c9ffbc7a0 100755 (executable)
@@ -1,16 +1,18 @@
 #!/usr/bin/env bash
 test_description="date/time parser module"
-. ./test-lib.sh || exit 1
+. $(dirname "$0")/test-lib.sh || exit 1
+
+if [ -n "${NOTMUCH_TEST_INSTALLED-}" ]; then
+    test_done
+fi
 
 # Sanity/smoke tests for the date/time parser independent of notmuch
 
-_date ()
-{
+_date () {
     date -d "$*" +%s
 }
 
-_parse_time ()
-{
+_parse_time () {
     ${TEST_DIRECTORY}/parse-time --format=%s "$*"
 }