From 0175914f79188d0617c87e3b0290b5e6d356a048 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 25 Mar 2021 17:49:44 +0000 Subject: [PATCH] Fix a null handling issue for system test derivation comparison --- guix-data-service/comparison.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/guix-data-service/comparison.scm b/guix-data-service/comparison.scm index a61165e..e5e1955 100644 --- a/guix-data-service/comparison.scm +++ b/guix-data-service/comparison.scm @@ -1095,8 +1095,12 @@ ORDER BY coalesce(base_system_tests.name, target_system_tests.name) ASC")) (string=? base_derivation_file_name target_derivation_file_name)) base_derivation_file_name - `((base . ,base_derivation_file_name) - (target . ,target_derivation_file_name)))) + `((base . ,(if (null? base_derivation_file_name) + 'null + base_derivation_file_name)) + (target . ,(if (null? target_derivation_file_name) + 'null + target_derivation_file_name))))) (location . ,(if (and (string? base_file) (string? target_file)