[kvm-unit-tests GIT PULL 03/12] s390x: Don't run PV testcases under tcg

Janosch Frank
2021-06-22T08:21:43Z

The UV call facility is only available on hardware.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
scripts/s390x/func.bash | 3 +++
1 file changed, 3 insertions(+)

diff --git a/scripts/s390x/func.bash b/scripts/s390x/func.bash
index b3912081..bf799a56 100644
--- a/scripts/s390x/func.bash
+++ b/scripts/s390x/func.bash
@@ -21,6 +21,9 @@ function arch_cmd_s390x()
"$cmd" "$testname" "$groups" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout"

# run PV test case
+ if [ "$ACCEL" = 'tcg' ]; then
+ return
+ fi
kernel=${kernel%.elf}.pv.bin
testname=${testname}_PV
if [ ! -f "${kernel}" ]; then
--
2.31.1