Skip to content

Commit

Permalink
[qemu][unit test] Consolidate QEMU includes into one QEMU_ENABLED check
Browse files Browse the repository at this point in the history
This addresses a review comment for #3739 (Building target multipass_tests fails on Ubuntu ARM64)
  • Loading branch information
jason-erb authored and ricab committed Dec 2, 2024
1 parent 9fb45ad commit 7cc82d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/linux/test_platform_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
#include "tests/mock_settings.h"
#include "tests/mock_standard_paths.h"
#include "tests/mock_utils.h"
#ifdef QEMU_ENABLED
#include "tests/qemu/linux/mock_dnsmasq_server.h"
#endif
#include "tests/temp_dir.h"
#include "tests/test_with_mocked_bin_path.h"

Expand All @@ -35,6 +32,7 @@
#include <src/platform/backends/lxd/lxd_virtual_machine_factory.h>

#ifdef QEMU_ENABLED
#include "tests/qemu/linux/mock_dnsmasq_server.h"
#include <src/platform/backends/qemu/qemu_virtual_machine_factory.h>
#define DEFAULT_FACTORY mp::QemuVirtualMachineFactory
#define DEFAULT_DRIVER "qemu"
Expand Down

0 comments on commit 7cc82d7

Please sign in to comment.