Commit 133e3555 authored by Jacek Galowicz's avatar Jacek Galowicz
Browse files

nixos-test-driver: only use sharedMemory qemu config setting on linux

parent 6668b5b3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@ let

  inherit (config) sshBackdoor;

  inherit (hostPkgs.stdenv.hostPlatform) isLinux;

  # Reifies and correctly wraps the python test driver for
  # the respective qemu version and with or without ocr support
  testDriver = config.pythonTestDriverPackage.override {
@@ -251,7 +253,7 @@ in
        # depending on whether debugging is enabled.
        #
        # If needed, this can still be turned off.
        virtualisation.qemu.enableSharedMemory = lib.mkDefault true;
        virtualisation.qemu.enableSharedMemory = lib.mkDefault isLinux;

        assertions = [
          {