From 47c1f89d5a7cfa60576ee2f22c3d993763fcd8c9 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Wed, 26 Jan 2022 11:49:39 -0800 Subject: [PATCH] t/RunCommand: fixup basic.t to use uuid --- t/Hydra/Plugin/RunCommand/basic.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/t/Hydra/Plugin/RunCommand/basic.t b/t/Hydra/Plugin/RunCommand/basic.t index 9410d348..7148adaa 100644 --- a/t/Hydra/Plugin/RunCommand/basic.t +++ b/t/Hydra/Plugin/RunCommand/basic.t @@ -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."); };