chiark / gitweb /
Test suite: bm-*: turn bm-report-source into bm-report-test
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 25 Oct 2016 12:44:10 +0000 (13:44 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 25 Oct 2016 12:44:10 +0000 (13:44 +0100)
No overall functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-build-modes

index 4b0f944..00f3a03 100644 (file)
@@ -97,11 +97,12 @@ bm-quirk-sbuild-after-act () {
        fi
 }
 
-bm-report-source () {
+bm-report-test () {
+       local desc=$1; shift
        if "$@"; then
-               echo >&4 "SOURCE EXISTS"
+               echo >&4 "$desc EXISTS"
        else
-               echo >&4 "SOURCE MISSING"
+               echo >&4 "$desc MISSING"
        fi
 }
 
@@ -141,7 +142,7 @@ bm-compute-expected () {
                echo >&4 "EXAMPLE RULES TARGET $t"
        done
 
-       bm-report-source $e_source
+       bm-report-test "SOURCE FILE" $e_source
 
        exec 4>&-
 }
@@ -191,7 +192,7 @@ bm-run-one () {
 
        egrep >&4 '^EXAMPLE RULES TARGET|^BUILD-MODES' $bmlog || [ $? = 1 ]
 
-       bm-report-source [ -e $dsc ]
+       bm-report-test "SOURCE FILE" [ -e $dsc ]
 
        exec 4>&-