Helper/Nix: constructRunCommandLogPath: take RunCommandLog as input
This way we ensure that it actually exists in the database, rather than blindly trusting user-generated input.
This commit is contained in:
@ -60,7 +60,7 @@ subtest "Validate a run log was created" => sub {
|
||||
is($runlog->exit_code, 0, "This command should have succeeded.");
|
||||
|
||||
subtest "Validate the run log file exists" => sub {
|
||||
my $logPath = Hydra::Helper::Nix::constructRunCommandLogPath($runlog->uuid);
|
||||
my $logPath = Hydra::Helper::Nix::constructRunCommandLogPath($runlog);
|
||||
ok(-f $logPath, "The run log was saved to a file.");
|
||||
ok(-z $logPath, "The run log was empty.");
|
||||
};
|
||||
|
Reference in New Issue
Block a user