X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT490-parse-time-string.sh;h=f89755ed0e42cfe7d87040f85410e77b8002adfd;hp=6aa9d433bfd40da5562aca16cb0ff79943d502d3;hb=2786aa4d548d28579c761e9358d44c84dfb29068;hpb=6aeef2ee15d16a0376f5bad8309a1da99fb73004 diff --git a/test/T490-parse-time-string.sh b/test/T490-parse-time-string.sh index 6aa9d433..f89755ed 100755 --- a/test/T490-parse-time-string.sh +++ b/test/T490-parse-time-string.sh @@ -1,16 +1,14 @@ #!/usr/bin/env bash test_description="date/time parser module" -. ./test-lib.sh +. $(dirname "$0")/test-lib.sh || exit 1 # 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 "$*" }