diff options
author | Thomas Huth <thuth@redhat.com> | 2020-06-17 16:52:04 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2020-07-06 07:37:02 +0200 |
commit | 51b3ca97592964a0ece22f9df92592e0f80a78fe (patch) | |
tree | ab61afd38f4b24524a280d9391bf8703fbc613ec /tests/qtest/libqtest.c | |
parent | dda2f556c3503758680b6a868fc49c4886a5039f (diff) |
tests/qtest: Unify the test for the xenfv and xenpv machines
We have the same check in three places. Let's unify it in a central
place instead.
Message-Id: <20200622104339.21000-1-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/libqtest.c')
-rw-r--r-- | tests/qtest/libqtest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c index 49075b55a1..fd4680590d 100644 --- a/tests/qtest/libqtest.c +++ b/tests/qtest/libqtest.c @@ -1232,6 +1232,10 @@ void qtest_cb_for_every_machine(void (*cb)(const char *machine), qstr = qobject_to(QString, qobj); g_assert(qstr); mname = qstring_get_str(qstr); + /* Ignore machines that cannot be used for qtests */ + if (!memcmp("xenfv", mname, 5) || g_str_equal("xenpv", mname)) { + continue; + } if (!skip_old_versioned || !qtest_is_old_versioned_machine(mname)) { cb(mname); } |