git.iko.soy/typeable/pandoc
on master help sign in
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

commitd0879bcc13f9211188463c544e1b7233ec179937 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 14 Jan 2010, 05:54 (17 years ago) parenteb851a4
1 file changed+1−1
tests/RunTests.hs+1−1
tests/RunTests.hs+1−1
@@ -152,7 +152,7 @@ runTest testname opts inp norm = do
152152 hFlush stdout
153153 env <- getEnvironment -- we need at least HOME so pandoc can find data files
154154 -- Note: COLUMNS must be set for markdown table reader
155− ph <- runProcess pandocPath (opts ++ [inpPath]) Nothing (Just (("COLUMNS", "80"):env)) Nothing (Just hOut) (Just stderr)
155+ ph <- runProcess pandocPath (opts ++ [inpPath] ++ ["--data-dir", ".."]) Nothing (Just (("COLUMNS", "80"):env)) Nothing (Just hOut) (Just stderr)
156156 ec <- waitForProcess ph
157157 result <- if ec == ExitSuccess
158158 then do