aboutsummaryrefslogtreecommitdiffstats
path: root/testing/virt-what/skip-ldoms-test-if-not-sparc64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/virt-what/skip-ldoms-test-if-not-sparc64.patch')
-rw-r--r--testing/virt-what/skip-ldoms-test-if-not-sparc64.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/virt-what/skip-ldoms-test-if-not-sparc64.patch b/testing/virt-what/skip-ldoms-test-if-not-sparc64.patch
new file mode 100644
index 0000000000..9b85d9ed00
--- /dev/null
+++ b/testing/virt-what/skip-ldoms-test-if-not-sparc64.patch
@@ -0,0 +1,14 @@
+diff -urN virt-what-1.18/tests/test-ldoms.sh virt-what-1.18-ldoms-unknown/tests/test-ldoms.sh
+--- virt-what-1.18/tests/test-ldoms.sh 2017-07-31 15:57:56.000000000 +0200
++++ virt-what-1.18-ldoms-unknown/tests/test-ldoms.sh 2017-07-31 19:51:37.542994885 +0200
+@@ -17,6 +17,10 @@
+
+ root=tests/ldoms
+
++cpu=$(arch -p)
++# test only for sparc64
++[ x"$cpu" = x"sparc64" ] || exit 77
++
+ output="$(./virt-what --test-root=$root 2>&1)"
+ expected="ldoms
+ ldoms-guest"