Fix virtualbox test evaluation

This commit is contained in:
Eelco Dolstra 2016-08-23 13:05:14 +02:00
parent 9e6eec201b
commit 3fe93d2f75

View File

@ -4,12 +4,12 @@ with import ../lib/testing.nix { inherit system; };
with pkgs.lib; with pkgs.lib;
let let
testVMConfig = vmName: attrs: { config, pkgs, ... }: let testVMConfig = vmName: attrs: { config, pkgs, lib, ... }: let
guestAdditions = pkgs.linuxPackages.virtualboxGuestAdditions; guestAdditions = pkgs.linuxPackages.virtualboxGuestAdditions;
miniInit = '' miniInit = ''
#!${pkgs.stdenv.shell} -xe #!${pkgs.stdenv.shell} -xe
export PATH="${stdenv.lib.makeBinPath [ pkgs.coreutils pkgs.utillinux ]}" export PATH="${lib.makeBinPath [ pkgs.coreutils pkgs.utillinux ]}"
mkdir -p /var/run/dbus mkdir -p /var/run/dbus
cat > /etc/passwd <<EOF cat > /etc/passwd <<EOF