diff --git a/python-theano.spec b/python-theano.spec index 358571e..601a5f6 100644 --- a/python-theano.spec +++ b/python-theano.spec @@ -150,15 +150,15 @@ cd - chmod a+x $(find %{buildroot} -name \*.py -o -name \*.sh | xargs grep -l '^#!') %check -%ifarch %{power64} # FIXME: some tests fail on ppc64le # The conv3d2d tests compute the wrong type of values (float32 instead of # float64) and the wrong values. -sed -i '/parameterized\.expand/,$d' ttheano/tensor/nnet/tests/test_conv3d2d.py +if [ "uname -m" = "ppc64le" ]; then + sed -i '/parameterized\.expand/,$d' ttheano/tensor/nnet/tests/test_conv3d2d.py -# An unexpected GradientError is thrown at theano/gradient.py line 1790 -rm theano/tensor/nnet/tests/test_corr3d.py -%endif + # An unexpected GradientError is thrown at theano/gradient.py line 1790 + rm theano/tensor/nnet/tests/test_corr3d.py +fi %{python3} bin/theano-nose --processes=0 --process-restartworker