mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
tests: use nixpkgs qemu-common for proper machine type configuration
QEMU on aarch64 requires an explicit machine type (e.g., '-machine virt'), unlike x86_64 which has a default. Previously, the test script hardcoded 'qemu-kvm' without machine type arguments, causing aarch64 tests to fail with "No machine specified, and there is no default". By importing and using nixpkgs' qemu-common.nix library, we reuse the existing platform-specific QEMU configuration logic.
This commit is contained in:
1 parent
af087d076d
commit
a19c2b6d3a
4 files changed
+34
-6
No files matched your search
+9
-1
@@ -1,11 +1,19 @@
|
||||
{
|
||||
makeTest ? import <nixpkgs/nixos/tests/make-test-python.nix>,
|
||||
eval-config ? import <nixpkgs/nixos/lib/eval-config.nix>,
|
||||
qemu-common ? import <nixpkgs/nixos/lib/qemu-common.nix>,
|
||||
pkgs ? import <nixpkgs> { },
|
||||
}:
|
||||
let
|
||||
lib = pkgs.lib;
|
||||
diskoLib = import ../lib { inherit lib makeTest eval-config; };
|
||||
diskoLib = import ../lib {
|
||||
inherit
|
||||
lib
|
||||
makeTest
|
||||
eval-config
|
||||
qemu-common
|
||||
;
|
||||
};
|
||||
|
||||
allTestFilenames = builtins.map (lib.removeSuffix ".nix") (
|
||||
builtins.filter (x: lib.hasSuffix ".nix" x && x != "default.nix") (
|
||||
|
||||
Reference in new issue
Block a user