From 93b412e6be7e2434d335c0edae2209ae0a85c601 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Nov 15 2015 19:10:20 +0000 Subject: Run tests conditional --- diff --git a/bindfs.spec b/bindfs.spec index 9447815..15f4f88 100644 --- a/bindfs.spec +++ b/bindfs.spec @@ -44,9 +44,15 @@ rm -rf $RPM_BUILD_ROOT %check -# show test-suite on errors -# Does not work in Fedora's koji because fuse is not available -#make check || (cat tests/test-suite.log tests/internals/test-suite.log; false) +# Fedora's koji does not provide /dev/fuse, therefore skip the tests there +# Always cat log files on failure to be able to debug issues +if [ -e /dev/fuse ]; then + make check || (cat tests/test-suite.log tests/internals/test-suite.log; false) +else + # internal tests use valgrind and should work + make -C tests/internals/ check || (cat tests/internals/test-suite.log; false) +fi + %files %defattr(-,root,root,-)