aboutsummaryrefslogtreecommitdiffstats
path: root/testing/virt-what/skip-ldoms-test-if-not-sparc64.patch
blob: 9b85d9ed00935a62ac6a15719cc38eb7ac90b061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"