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
This commit is contained in:
fiddlosopher 2010-01-14 05:54:44 +00:00
parent eb851a41ca
commit d0879bcc13

View file

@ -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