dump test results into build log on test failure to help with #837351
[debian/tar] / debian / rules
index b1a1b04c2074cfaa46a91388dc585a2aede4fb26..7c2f21c0ca2b40c85364f7ca9332ebba08fea9c1 100755 (executable)
@@ -49,7 +49,7 @@ ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
          echo "Sorry, but the test suite is not designed to be run as root."; \
          exit 1 ;\
        fi
-       $(MAKE) check
+       $(MAKE) check || { cat tests/testsuite.log; false; }
 endif
 endif
 
@@ -65,7 +65,7 @@ clean:
 install: build
        dh_testdir
        dh_testroot
-       dh_clean -k
+       dh_prep
        dh_installdirs
 
        make install bindir=`pwd`/debian/tar/bin prefix=`pwd`/debian/tar/usr \