Skip to content

Commit

Permalink
Fix OOM in the installer test
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Sep 6, 2016
1 parent f249521 commit a566927
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions release.nix
Expand Up @@ -221,13 +221,15 @@ let
''
useradd -m alice
su - alice -c 'tar xf ${binaryTarball.x86_64-linux}/*.tar.*'
mount -t tmpfs none /nix # Provide a writable /nix.
mkdir /dest-nix
mount -o bind /dest-nix /nix # Provide a writable /nix.
chown alice /nix
su - alice -c '_NIX_INSTALLER_TEST=1 ./nix-*/install'
su - alice -c 'nix-store --verify'
su - alice -c 'nix-store -qR ${build.x86_64-linux}'
su - alice -c 'PAGER= nix-store -qR ${build.x86_64-linux}'
mkdir -p $out/nix-support
touch $out/nix-support/hydra-build-products
umount /nix
''); # */

tests.evalNixpkgs =
Expand Down

0 comments on commit a566927

Please sign in to comment.