t/RunCommand: fixup basic.t to use uuid

This commit is contained in:
Cole Helbling 2022-01-26 11:49:39 -08:00
parent fc3cf4ecb2
commit 47c1f89d5a

View file

@ -60,8 +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 $filename = Hydra::Helper::Nix::constructRunCommandLogFilename(sha1_hex($runlog->command), $build->get_column('id'));
my $logPath = Hydra::Helper::Nix::constructRunCommandLogPath($filename);
my $logPath = Hydra::Helper::Nix::constructRunCommandLogPath($runlog->uuid);
ok(-f $logPath, "The run log was saved to a file.");
ok(-z $logPath, "The run log was empty.");
};