From c620bc2be0b257c632db99824a7764491654af35 Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Fri, 21 Jun 2019 16:57:12 +0200 Subject: [PATCH] test.api: use Hydra perl dependencies to run `api-test.pl` The test was failing with: machine# Can't locate LWP/UserAgent.pm in @INC (you may need to install the LWP::UserAgent module)... --- release.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.nix b/release.nix index dd28cef0..1ee47e96 100644 --- a/release.nix +++ b/release.nix @@ -219,7 +219,7 @@ rec { $machine->waitForOpenPort("3000"); # Run the API tests. - $machine->mustSucceed("su - hydra -c 'perl ${./tests/api-test.pl}' >&2"); + $machine->mustSucceed("su - hydra -c 'perl -I ${build.${system}.perlDeps}/lib/perl5/site_perl ${./tests/api-test.pl}' >&2"); ''; });