From 3f1bbf7ef45070c6e9af7dfbb6f5dbe7d5dbddfb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 12 Mar 2012 21:06:42 +0100 Subject: [PATCH] Better fix --- tests/Makefile.am | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index f510956e..464d8141 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,5 +1,3 @@ -perl5lib = "$(srcdir):$(top_srcdir)/src/lib:$$PERL5LIB" - TESTS_ENVIRONMENT = \ BZR_HOME="$(abs_builddir)/data" \ HYDRA_DBI="dbi:SQLite:db.sqlite" \ @@ -12,7 +10,7 @@ TESTS_ENVIRONMENT = \ NIX_STORE_DIR="$(abs_builddir)/nix/store" \ NIX_LOG_DIR="$(abs_builddir)/nix/var/log/nix" \ NIX_BUILD_HOOK= \ - PERL5LIB=$(perl5lib) \ + PERL5LIB="$(srcdir):$(top_srcdir)/src/lib:$$PERL5LIB" \ PATH=$(abs_top_srcdir)/src/script:$(abs_top_srcdir)/src/c:$$PATH \ perl -w @@ -33,7 +31,7 @@ clean : check_SCRIPTS = db.sqlite repos db.sqlite : $(top_srcdir)/src/sql/hydra-sqlite.sql - PERL5LIB=$(perl5lib) perl $(top_srcdir)/src/script/hydra-init + $(TESTS_ENVIRONMENT) $(top_srcdir)/src/script/hydra-init repos : dirs git-repo hg-repo svn-repo svn-checkout-repo bzr-repo bzr-checkout-repo