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:
parent
eb851a41ca
commit
d0879bcc13
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue