Relocate the final evalutation tests to a build-products specific test.

This commit is contained in:
Graham Christensen 2021-02-23 14:28:57 -05:00
parent 2776ae6c78
commit 0df9c68422
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -7,18 +7,11 @@ use Setup;
require Hydra::Schema;
require Hydra::Model::DB;
use Test::Simple tests => 8;
use Test2::V0;
my $db = Hydra::Model::DB->new;
hydra_setup($db);
my $res;
my $stdout;
my $stderr;
my $jobsBaseUri = "file://".getcwd;
my $project = $db->resultset('Projects')->create({name => "tests", displayname => "", owner => "root"});
my $jobset;
# Test build products
@ -41,3 +34,5 @@ for my $build (queuedBuildsForJobset($jobset)) {
ok($buildproduct->name eq "some text.txt", "We should have: \"some text.txt\", but found: ".$buildproduct->name."\n");
}
}
done_testing;