diff --git a/qemu.spec b/qemu.spec
index edcce38..69a42f1 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -1417,12 +1417,13 @@ chmod +x %{buildroot}%{_libdir}/qemu/*.so
 perl -i -p -e 's/^(127|267)/# $1/' tests/qemu-iotests/group
 %endif
 
+pushd build-dynamic
+
 # 2021-06: s390x tests randomly failing with 'Broken pipe' errors
 # dhorak couldn't reproduce locally on an s390x machine so guessed
 # it's a resource issue
 # 2021-06: ppc64le test suite hanging
 %ifnarch s390x %{power64}
-pushd build-dynamic
 make check V=1
 %endif