From 6a4cf944ef840faf63efd4b699b46e6ef60c013a Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Tue, 26 Mar 2024 06:50:18 +0800 Subject: [PATCH] jre_minimal.tests: convert to an attribute set Provide package tests as an attribute set instead of a list, making it easier to build individual test cases. --- pkgs/development/compilers/openjdk/jre.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/openjdk/jre.nix b/pkgs/development/compilers/openjdk/jre.nix index 02f6da928cdd..da3bd16bcb54 100644 --- a/pkgs/development/compilers/openjdk/jre.nix +++ b/pkgs/development/compilers/openjdk/jre.nix @@ -30,10 +30,10 @@ let passthru = { home = "${jre}"; - tests = [ - (callPackage ./tests/test_jre_minimal.nix {}) - (callPackage ./tests/test_jre_minimal_with_logging.nix {}) - ]; + tests = { + jre_minimal-hello = callPackage ./tests/test_jre_minimal.nix {}; + jre_minimal-hello-logging = callPackage ./tests/test_jre_minimal_with_logging.nix {}; + }; }; }; in jre