diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-01-14 05:54:44 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-01-14 05:54:44 +0000 |
commit | d0879bcc13f9211188463c544e1b7233ec179937 (patch) | |
tree | d61dcb6a98faeac5ed0316712b539117ac80b430 /tests/RunTests.hs | |
parent | eb851a41ca8e7b045a483837e676d31de21efe95 (diff) | |
download | pandoc-d0879bcc13f9211188463c544e1b7233ec179937.tar.gz |
Fixed RunTests so it doesn't require data files to have been installed.
The trick: use 'pandoc --data-dir ..'
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1810 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests/RunTests.hs')
-rw-r--r-- | tests/RunTests.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/RunTests.hs b/tests/RunTests.hs index df682c341..565ce8d7f 100644 --- a/tests/RunTests.hs +++ b/tests/RunTests.hs @@ -152,7 +152,7 @@ runTest testname opts inp norm = do hFlush stdout env <- getEnvironment -- we need at least HOME so pandoc can find data files -- Note: COLUMNS must be set for markdown table reader - ph <- runProcess pandocPath (opts ++ [inpPath]) Nothing (Just (("COLUMNS", "80"):env)) Nothing (Just hOut) (Just stderr) + ph <- runProcess pandocPath (opts ++ [inpPath] ++ ["--data-dir", ".."]) Nothing (Just (("COLUMNS", "80"):env)) Nothing (Just hOut) (Just stderr) ec <- waitForProcess ph result <- if ec == ExitSuccess then do |