chiark / gitweb /
Test suite: When sbuild log file missing, make a note
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 Jul 2016 23:30:46 +0000 (00:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jul 2016 15:47:48 +0000 (16:47 +0100)
This updates "Test suite: When sbuild fails, do not crash", to arrange
that in this situation we do leave a message in the $bmlog, where it
will be reported (eg) by diff.  This makes debugging less confusing in
cases where the log is indeed missing.

tests/lib-build-modes

index 05c415cac725e87fdc993598fe39a8db7fc1a56a..639f9b504064ec8a7743617031b0e316b8e8afa3 100644 (file)
@@ -70,6 +70,8 @@ bm-quirk-sbuild-after-act () {
                sed '
                        s/^EXAMPLE RULES TARGET clean/HOOK SUPPRESSED &/;
                ' <$sblog >>$bmlog
+       else
+               echo "SBUILD LOG FILE ($sblog) MISSING"
        fi
 }