]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: improve reporting a bit
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 10 Dec 2019 16:33:58 +0000 (17:33 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Mar 2020 10:51:13 +0000 (11:51 +0100)
test/test-functions

index 827337a814b7bb8e7296be1ae97270a8bc864aba..a7f28493ce78ae0673e7bb91e9960f34fe73fdd9 100644 (file)
@@ -665,6 +665,9 @@ create_empty_image() {
     if [[ "$STRIP_BINARIES" = "no" ]]; then
         _size=$((4*_size))
     fi
+
+    echo "Setting up $TESTDIR/rootdisk.img (${_size} MB)"
+
     rm -f "$TESTDIR/rootdisk.img"
     # Create the blank file to use as a root filesystem
     truncate -s "${_size}M" "$TESTDIR/rootdisk.img"
@@ -1894,7 +1897,7 @@ test_cleanup() {
 }
 
 test_setup() {
-    if type -P meson && [[ "$(meson configure $BUILD_DIR | grep install-tests | awk '{ print $2 }')" != "true" ]]; then
+    if type -P meson >/dev/null && [[ "$(meson configure $BUILD_DIR | grep install-tests | awk '{ print $2 }')" != "true" ]]; then
         dfatal "Needs to be built with -Dinstall-tests=true"
         exit 1
     fi