X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FT490-parse-time-string.sh;h=f89755ed0e42cfe7d87040f85410e77b8002adfd;hb=7b27119d8ee4ad612b7a7d48b612d15a58d68976;hp=ab90fcc5a76d444c831843d681c2499afc936c2e;hpb=02a2eeb427d6b424029f6e5e5ddad4c6ec987741;p=notmuch diff --git a/test/T490-parse-time-string.sh b/test/T490-parse-time-string.sh index ab90fcc5..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 || exit 1 +. $(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 "$*" }