render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
404507
From f0b982a8f6e736bcf5070c6d3ed166159792dda1 Mon Sep 17 00:00:00 2001
404507
Message-Id: <f0b982a8f6e736bcf5070c6d3ed166159792dda1@dist-git>
404507
From: Martin Kletzander <mkletzan@redhat.com>
404507
Date: Wed, 31 Jan 2018 16:32:33 +0100
404507
Subject: [PATCH] tests: Clean up and modify some vircaps2xmldata
404507
404507
Basically the `cpus` and `tasks` files are not needed, and I've witnessed on a
404507
real system that the schemata file may have spaces prepended to a line, so let's
404507
adjust at least one test so that it reflects what can happen.  Also `000`
404507
allocation is invalid and a full mask means it's all free.  So adjust for that
404507
too.
404507
404507
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
404507
(cherry picked from commit 47bb586c7533fc9f8366d078b3db26e791aaadf2)
404507
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
404507
404507
https://bugzilla.redhat.com/show_bug.cgi?id=1289368
404507
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
404507
---
404507
 tests/vircaps2xmldata/linux-resctrl-cdp/resctrl/cpus               | 1 -
404507
 tests/vircaps2xmldata/linux-resctrl-cdp/resctrl/tasks              | 0
404507
 tests/vircaps2xmldata/linux-resctrl-skx-twocaches/resctrl/schemata | 2 +-
404507
 tests/vircaps2xmldata/linux-resctrl/resctrl/cpus                   | 1 -
404507
 tests/vircaps2xmldata/linux-resctrl/resctrl/schemata               | 2 +-
404507
 tests/vircaps2xmldata/linux-resctrl/resctrl/tasks                  | 0
404507
 tests/virresctrldata/resctrl-skx-twocaches.schemata                | 2 +-
404507
 7 files changed, 3 insertions(+), 5 deletions(-)
404507
 delete mode 100644 tests/vircaps2xmldata/linux-resctrl-cdp/resctrl/cpus
404507
 delete mode 100644 tests/vircaps2xmldata/linux-resctrl-cdp/resctrl/tasks
404507
 delete mode 100644 tests/vircaps2xmldata/linux-resctrl/resctrl/cpus
404507
 delete mode 100644 tests/vircaps2xmldata/linux-resctrl/resctrl/tasks
404507
404507
diff --git a/tests/vircaps2xmldata/linux-resctrl-cdp/resctrl/cpus b/tests/vircaps2xmldata/linux-resctrl-cdp/resctrl/cpus
404507
deleted file mode 100644
404507
index b3a79aa953..0000000000
404507
--- a/tests/vircaps2xmldata/linux-resctrl-cdp/resctrl/cpus
404507
+++ /dev/null
404507
@@ -1 +0,0 @@
404507
-ffffff,ffffffff,ffffffff
404507
diff --git a/tests/vircaps2xmldata/linux-resctrl-cdp/resctrl/tasks b/tests/vircaps2xmldata/linux-resctrl-cdp/resctrl/tasks
404507
deleted file mode 100644
404507
index e69de29bb2..0000000000
404507
diff --git a/tests/vircaps2xmldata/linux-resctrl-skx-twocaches/resctrl/schemata b/tests/vircaps2xmldata/linux-resctrl-skx-twocaches/resctrl/schemata
404507
index 691fbaf887..23af473be4 100644
404507
--- a/tests/vircaps2xmldata/linux-resctrl-skx-twocaches/resctrl/schemata
404507
+++ b/tests/vircaps2xmldata/linux-resctrl-skx-twocaches/resctrl/schemata
404507
@@ -1 +1 @@
404507
-L3:0=0f0;1=000
404507
+L3:0=0f0;1=7ff
404507
diff --git a/tests/vircaps2xmldata/linux-resctrl/resctrl/cpus b/tests/vircaps2xmldata/linux-resctrl/resctrl/cpus
404507
deleted file mode 100644
404507
index 98d03acc98..0000000000
404507
--- a/tests/vircaps2xmldata/linux-resctrl/resctrl/cpus
404507
+++ /dev/null
404507
@@ -1 +0,0 @@
404507
-fff
404507
diff --git a/tests/vircaps2xmldata/linux-resctrl/resctrl/schemata b/tests/vircaps2xmldata/linux-resctrl/resctrl/schemata
404507
index c1a765f1e0..78d2d8a9b8 100644
404507
--- a/tests/vircaps2xmldata/linux-resctrl/resctrl/schemata
404507
+++ b/tests/vircaps2xmldata/linux-resctrl/resctrl/schemata
404507
@@ -1 +1 @@
404507
-L3:0=1ff00;1=1ff0f
404507
+    L3:0=1ff00;1=1ff0f
404507
diff --git a/tests/vircaps2xmldata/linux-resctrl/resctrl/tasks b/tests/vircaps2xmldata/linux-resctrl/resctrl/tasks
404507
deleted file mode 100644
404507
index e69de29bb2..0000000000
404507
diff --git a/tests/virresctrldata/resctrl-skx-twocaches.schemata b/tests/virresctrldata/resctrl-skx-twocaches.schemata
404507
index 86b3801a04..890d003bf2 100644
404507
--- a/tests/virresctrldata/resctrl-skx-twocaches.schemata
404507
+++ b/tests/virresctrldata/resctrl-skx-twocaches.schemata
404507
@@ -1 +1 @@
404507
-L3:0=001;1=400
404507
+L3:0=001;1=000
404507
-- 
404507
2.16.1
404507