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)...
This commit is contained in:
Antoine Eiche 2019-06-21 16:57:12 +02:00
parent c85bf668e6
commit c620bc2be0

View file

@ -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");
'';
});