]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: make ./run.sh more robust
authorKarel Zak <kzak@redhat.com>
Mon, 23 Aug 2021 13:15:38 +0000 (15:15 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Aug 2021 13:15:38 +0000 (15:15 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/run.sh

index 9d26406c4a591f20a3463ff65cbe9c7c3587f2d3..d020bfe88a27425f6fa0a1bf7880b43f368c039b 100755 (executable)
@@ -165,7 +165,7 @@ OPTS="$OPTS --srcdir=$top_srcdir --builddir=$top_builddir"
 if [ -z "$has_asan_opt" ]; then
         if [ -e "$top_builddir/Makefile" ]; then
            asan=$(awk '/^ASAN_LDFLAGS/ { print $3 }' $top_builddir/Makefile)
-        else
+        elif [ -f "$top_builddir/meson.conf" ]; then
             . "$top_builddir/meson.conf"
         fi
        if [ -n "$asan" ]; then