[gjs] build: Run tests one at a time when collecting coverage



commit 5133555271026e6845124e078fbb0ad5fb213b10
Author: Philip Chimento <philip chimento gmail com>
Date:   Fri Oct 25 22:33:54 2019 -0700

    build: Run tests one at a time when collecting coverage
    
    Unfortunately the JS coverage is all written to the same file, so it
    needs to be written sequentially. Running the tests in parallel which
    meson did by default was creating garbage LCOV data.
    
    Unreviewed, pushing to fix coverage build.

 tools/run_coverage.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tools/run_coverage.sh b/tools/run_coverage.sh
index d2e891de..65102b99 100755
--- a/tools/run_coverage.sh
+++ b/tools/run_coverage.sh
@@ -15,7 +15,7 @@ VERSION=$(meson introspect "$BUILDDIR" --projectinfo | python -c 'import json, s
 
 ninja -C "$BUILDDIR"
 mkdir -p _coverage
-ninja -C "$BUILDDIR" test
+meson test -C "$BUILDDIR" --num-processes 1
 lcov --directory "$BUILDDIR" --capture --output-file _coverage/gjs.lcov.run --no-checksum $LCOV_ARGS
 lcov --extract _coverage/gjs.lcov.run "$SOURCEDIR/*" "$GIDATADIR/tests/*" $LCOV_ARGS -o 
_coverage/gjs.lcov.sources
 lcov --remove _coverage/gjs.lcov.sources $IGNORE $LCOV_ARGS -o _coverage/gjs.lcov


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]