diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2017-02-09 16:09:47 -0500 |
---|---|---|
committer | John Ericson <Ericson2314@Yahoo.com> | 2017-04-17 17:13:01 -0400 |
commit | 8c99aab3ea4a9ddbd3918282da7861e674b4e7c4 (patch) | |
tree | 5c8a663c775e02ad7c7c714d89095f3cd500e0a0 /pkgs/top-level/release-cross.nix | |
parent | fffcee35f9b2042d4edc5dccb3379972e03ffd84 (diff) | |
download | nixpkgs-8c99aab3ea4a9ddbd3918282da7861e674b4e7c4.tar nixpkgs-8c99aab3ea4a9ddbd3918282da7861e674b4e7c4.tar.gz nixpkgs-8c99aab3ea4a9ddbd3918282da7861e674b4e7c4.tar.bz2 nixpkgs-8c99aab3ea4a9ddbd3918282da7861e674b4e7c4.tar.lz nixpkgs-8c99aab3ea4a9ddbd3918282da7861e674b4e7c4.tar.xz nixpkgs-8c99aab3ea4a9ddbd3918282da7861e674b4e7c4.tar.zst nixpkgs-8c99aab3ea4a9ddbd3918282da7861e674b4e7c4.zip |
lib: Fix system parsing, and use for doubles lists
The old hard-coded lists are now used to test system parsing. In the process, make an `assertTrue` in release lib for eval tests; also use it in release-cross
Diffstat (limited to 'pkgs/top-level/release-cross.nix')
-rw-r--r-- | pkgs/top-level/release-cross.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/top-level/release-cross.nix b/pkgs/top-level/release-cross.nix index c68c7d3721e..67f3d55fa16 100644 --- a/pkgs/top-level/release-cross.nix +++ b/pkgs/top-level/release-cross.nix @@ -47,11 +47,11 @@ in # cause false negatives. testEqualOne = path: system: let f = path: attrs: builtins.toString (lib.getAttrFromPath path (allPackages attrs)); - in assert + in assertTrue ( f path { inherit system; } == f (["buildPackages"] ++ path) { inherit system crossSystem; }; - true; + ); testEqual = path: systems: forAllSupportedSystems systems (testEqualOne path); |