report-test: move add-to-load-path to build system

The unit test for cashflow-barchart.scm needs module stylesheets
to work, to render gnc-monetary objects correctly.
It makes sense to add the extra load-path needed by the module
in the build system instead of with code in the test file.

This is only needed when building with autotools. It seems cmake
builds don't need this.
This commit is contained in:
Jose Marino 2017-10-31 09:59:18 -06:00
parent 5ca2834bd0
commit 41ad89154f
2 changed files with 1 additions and 2 deletions

View File

@ -30,6 +30,7 @@ GNC_TEST_DEPS = \
--guile-load-dir ${top_builddir}/gnucash/report/report-system/test \
--guile-load-dir ${top_builddir}/gnucash/report/standard-reports \
--guile-load-dir ${top_builddir}/gnucash/report/standard-reports/test \
--guile-load-dir ${top_builddir}/gnucash/report/stylesheets \
\
--library-dir ${top_builddir}/gnucash/report/report-system \
--library-dir ${top_builddir}/libgnucash/core-utils \

View File

@ -29,8 +29,6 @@
(use-modules (gnucash report report-system))
(use-modules (gnucash report report-system test test-extras))
(use-modules (gnucash report standard-reports cashflow-barchart))
(add-to-load-path "../../stylesheets/")
(use-modules (gnucash report stylesheets))
(use-modules (ice-9 format))