From 473a571a8c99fb45d2e4ab41823a66287ff26161 Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Mon, 20 Dec 2021 22:51:25 +0000 Subject: [PATCH] nixos/tests/mtp: use QEMU v6.0.0 A change in QEMU v6.1.0 has somehow caused QEMU to behave differently enough to cause this test to fail. This commit forces the test to be ran with QEMU 6.0.0 from Nixpkgs at revision e1fc1a80a071c90ab65fb6eafae5520579163783, which is the commit prior to the QEMU 6.1.0 version bump. Co-authored-by: Julio Sueiras --- nixos/tests/all-tests.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index f35ecca4344a..792965d7a10f 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -277,7 +277,13 @@ in mosquitto = handleTest ./mosquitto.nix {}; mpd = handleTest ./mpd.nix {}; mpv = handleTest ./mpv.nix {}; - mtp = handleTest ./mtp.nix {}; + mtp = let + olderQemu = (import (fetchTarball { + url = "https://github.com/nixos/nixpkgs/archive/e1fc1a80a071c90ab65fb6eafae5520579163783.tar.gz"; + sha256 = "19a0qrx31lp2r8cgk9hv4p6j6six6l82qisxr68y7wb7drw7dhkz"; + }) { inherit system; }).qemu_test; + myPkgs = import ../.. { inherit system; overlays = [ (self: super: { qemu_test = olderQemu; }) ]; }; + in handleTest ./mtp.nix { pkgs = myPkgs; }; mumble = handleTest ./mumble.nix {}; musescore = handleTest ./musescore.nix {}; munin = handleTest ./munin.nix {};