diff --git a/test/test_songbook/onthefly/content.onthefly.tex.control b/test/test_songbook/onthefly/content.onthefly.tex.control index fdabab34..a41446bd 100644 --- a/test/test_songbook/onthefly/content.onthefly.tex.control +++ b/test/test_songbook/onthefly/content.onthefly.tex.control @@ -14,7 +14,7 @@ \makeatletter \def\input@path{ % {@TEST_FOLDER@/onthefly/../content_datadir/latex/} % - {@DATA_FOLDER@/latex/} % + {@LOCAL_DATA_FOLDER@/latex/} % } \makeatother @@ -39,7 +39,7 @@ guitar, \usepackage{graphicx} \graphicspath{ % {@TEST_FOLDER@/onthefly/../content_datadir/} % - {@DATA_FOLDER@/} % + {@LOCAL_DATA_FOLDER@/} % } diff --git a/test/test_songbook/test_compilation.py b/test/test_songbook/test_compilation.py index 5ba50677..0439becd 100644 --- a/test/test_songbook/test_compilation.py +++ b/test/test_songbook/test_compilation.py @@ -14,6 +14,7 @@ import yaml from patacrep.files import path2posix, chdir from patacrep.songbook import prepare_songbook from patacrep.build import SongbookBuilder +from patacrep import __DATADIR__ from .. import logging_reduced from .. import dynamic # pylint: disable=unused-import @@ -92,6 +93,10 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): "@TEST_FOLDER@", path2posix(os.path.dirname(__file__)), ) + expected = expected.replace( + "@LOCAL_DATA_FOLDER@", + path2posix(__DATADIR__), + ) expected = expected.replace( "@DATA_FOLDER@",