dcavalca / rpms / util-linux

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