673c78
From 38b2b2e49e72638639c997e532a846ee935ce148 Mon Sep 17 00:00:00 2001
673c78
From: Karel Zak <kzak@redhat.com>
673c78
Date: Mon, 23 Aug 2021 15:15:38 +0200
673c78
Subject: tests: make ./run.sh more robust
673c78
673c78
Let's make upstream tests more stable to be usable in RHEL
673c78
environment where we do not use ASAN and meson.
673c78
673c78
Upstream: http://github.com/karelzak/util-linux/commit/331c5e0c54d9cb6f67dc3e825eec2d78c67d8ce6
673c78
Signed-off-by: Karel Zak <kzak@redhat.com>
673c78
---
673c78
 tests/run.sh | 2 +-
673c78
 1 file changed, 1 insertion(+), 1 deletion(-)
673c78
673c78
diff --git a/tests/run.sh b/tests/run.sh
673c78
index 9d26406c4..d020bfe88 100755
673c78
--- a/tests/run.sh
673c78
+++ b/tests/run.sh
673c78
@@ -165,7 +165,7 @@ OPTS="$OPTS --srcdir=$top_srcdir --builddir=$top_builddir"
673c78
 if [ -z "$has_asan_opt" ]; then
673c78
         if [ -e "$top_builddir/Makefile" ]; then
673c78
 	    asan=$(awk '/^ASAN_LDFLAGS/ { print $3 }' $top_builddir/Makefile)
673c78
-        else
673c78
+        elif [ -f "$top_builddir/meson.conf" ]; then
673c78
             . "$top_builddir/meson.conf"
673c78
         fi
673c78
 	if [ -n "$asan" ]; then
673c78
-- 
673c78
2.34.1
673c78