From f2830edd2fd4bd554e3cc682817e57040274522f Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 23 Sep 2018 13:39:11 +0200 Subject: [PATCH] when building code coverage, do not run the lldb tests (freezing) --- debian/rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 3d620eb9..627c841e 100755 --- a/debian/rules +++ b/debian/rules @@ -124,6 +124,7 @@ ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) RUN_TEST=no endif +CODECOVERAGE=no ifneq (,$(filter codecoverage,$(DEB_BUILD_OPTIONS))) # enable the code coverage CODECOVERAGE=yes @@ -710,7 +711,9 @@ ifneq (,$(filter codecoverage,$(DEB_BUILD_OPTIONS))) if test ! -e _lldb.so; then \ ln -s lldb/_lldb.so; \ fi - LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(CURDIR)/$(TARGET_BUILD)/lib/ $(MAKE) $(NJOBS) -C $(TARGET_BUILD) check-lldb || true + if test "$(CODECOVERAGE)" = "no"; then \ + LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(CURDIR)/$(TARGET_BUILD)/lib/ $(MAKE) $(NJOBS) -C $(TARGET_BUILD) check-lldb || true; \ + fi # remove the workaround rm $(CURDIR)/$(TARGET_BUILD)/lib/python*/site-packages/_lldb.so endif