Merge pull request #1119 from DeterminateSystems/project-jobset/update-gc-roots

Project jobset: update-gc-roots
This commit is contained in:
Graham Christensen
2022-01-15 15:57:06 -05:00
committed by GitHub
2 changed files with 33 additions and 3 deletions

View File

@ -0,0 +1,22 @@
use feature 'unicode_strings';
use strict;
use warnings;
use Setup;
use Test2::V0;
my $ctx = test_context();
my $builds = $ctx->makeAndEvaluateJobset(
expression => "one-job.nix",
build => 1
);
subtest "Updating GC roots" => sub {
my ($res, $stdout, $stderr) = captureStdoutStderr(5, ("hydra-update-gc-roots"));
is($res, 0, "hydra-update-gc-roots should exit zero");
if ($res != 0) {
print "gc roots stdout: $stdout\n";
print "gc roots stderr: $stderr";
}
};
done_testing;