Skip to content

Commit

Permalink
nixos/tests/storage: Pass system to storage eval
Browse files Browse the repository at this point in the history
This fixes the following test failure on i686-linux:

https://headcounter.org/hydra/build/1562265/nixlog/13/raw

The reason we get an exec format error here is that we evaluate the
storage spec using the host system while the rest is evaluaten using the
system attribute from the test's args.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
  • Loading branch information
aszlig committed Jan 5, 2017
1 parent 26c6ce6 commit c0c04ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/tests/storage.nix
Expand Up @@ -15,6 +15,7 @@ let
lib.genList (lib.const 4096) (attrs.diskImages or 2);
environment.etc."nixpart.json".source = (import ../lib/eval-config.nix {
modules = pkgs.lib.singleton attrs.config;
inherit system;
}).config.system.build.nixpart-spec;
};

Expand Down

0 comments on commit c0c04ca

Please sign in to comment.