From 375a469af45d44d70b9374dc0da8af717a107cf4 Mon Sep 17 00:00:00 2001 From: Finn Bacall Date: Tue, 21 Jul 2026 10:40:54 +0100 Subject: [PATCH] Put test results in a directory So they can be symlinked if necessary --- app/models/concerns/has_test_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/has_test_job.rb b/app/models/concerns/has_test_job.rb index a50e6ce70..8cea2aa6f 100644 --- a/app/models/concerns/has_test_job.rb +++ b/app/models/concerns/has_test_job.rb @@ -53,7 +53,7 @@ def test_job_id_key def test_results_path path_id = Rails.env.test? ? "fakeid_#{model_name.singular}_#{id}" : test_job_id - File.join(Rails.root, 'tmp', "test_results_#{path_id}.yml") + Rails.root.join('tmp', 'source_test_results').tap { |d| d.mkdir unless d.exist? }.join("test_results_#{path_id}.yml") end def deep_hashify(params)