From 1f4e2899037bcf7f6d04a738b2397382aaa136d2 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 16 Jan 2020 02:05:34 +0100 Subject: [PATCH] Fix run-doctests working dir --- hpath-filepath/run-doctests.sh | 4 +++- hpath/run-doctests.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hpath-filepath/run-doctests.sh b/hpath-filepath/run-doctests.sh index 305574c..ad714f8 100755 --- a/hpath-filepath/run-doctests.sh +++ b/hpath-filepath/run-doctests.sh @@ -18,4 +18,6 @@ fi set -x -cabal exec doctest -- -ihpath-filepath/src -XOverloadedStrings System.Posix.FilePath +cd "$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)" + +cabal exec doctest -- -isrc -XOverloadedStrings System.Posix.FilePath diff --git a/hpath/run-doctests.sh b/hpath/run-doctests.sh index 48c6640..2b260f8 100755 --- a/hpath/run-doctests.sh +++ b/hpath/run-doctests.sh @@ -18,4 +18,6 @@ fi set -x -cabal exec doctest -- -ihpath/src -XOverloadedStrings -XQuasiQuotes HPath +cd "$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)" + +cabal exec doctest -- -isrc -XOverloadedStrings -XQuasiQuotes HPath