guestfs-tools/0001-inspector-Update-coreos-test-for-new-build_id-field.patch

38 lines
1.3 KiB
Diff
Raw Normal View History

From bb9cb86106f96d11c81216d4c59efe8759eba904 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Sat, 10 Dec 2022 14:35:41 +0000
Subject: [PATCH] inspector: Update coreos test for new <build_id> field
When running against libguestfs >= 1.49.8 which provides the new
guestfs_inspect_get_build_id API the test would fail with:
<major_version>899</major_version>
<minor_version>13</minor_version>
<hostname>coreos.invalid</hostname>
+ <build_id>2016-03-23-0120</build_id>
<osinfo>coreos899.13</osinfo>
<mountpoints>
<mountpoint dev="/dev/sda5">/</mountpoint>
FAIL test-virt-inspector.sh (exit status: 1)
Fixes: commit 4e703943ca0ac4dc5ae5a1aec229c58c56e83158
---
inspector/expected-coreos.img.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/inspector/expected-coreos.img.xml b/inspector/expected-coreos.img.xml
index 0cdfba6e65..2461bcfb45 100644
--- a/inspector/expected-coreos.img.xml
+++ b/inspector/expected-coreos.img.xml
@@ -8,6 +8,7 @@
<major_version>899</major_version>
<minor_version>13</minor_version>
<hostname>coreos.invalid</hostname>
+ <build_id>2016-03-23-0120</build_id>
<osinfo>coreos899.13</osinfo>
<mountpoints>
<mountpoint dev="/dev/sda5">/</mountpoint>
--
2.37.3