From d0879bcc13f9211188463c544e1b7233ec179937 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Thu, 14 Jan 2010 05:54:44 +0000 Subject: 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 --- tests/RunTests.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3