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