diff --git a/ets2panda/scripts/es2panda_coverage.sh b/ets2panda/scripts/es2panda_coverage.sh index f6a2ed89d12a9e0e6071ee8730cf18ac902d0025..f7f4eeb211973e768410028d45e4755745608b93 100644 --- a/ets2panda/scripts/es2panda_coverage.sh +++ b/ets2panda/scripts/es2panda_coverage.sh @@ -28,9 +28,16 @@ case "$ARGUMENT" in esac done -python $PANDA_ROOT/tools/es2panda/scripts/test_runner.py \ +source $PANDA_ROOT/scripts/python/venv-utils.sh +activate_venv +set +e + +python3 $PANDA_ROOT/tools/es2panda/scripts/test_runner.py \ --builddir $PANDA_BINARY_ROOT --arkdir $PANDA_ROOT --all +set -e +deactivate_venv + gcov $PANDA_BINARY_ROOT/tools/es2panda/CMakeFiles/es2panda-lib.dir/*/* if [ -x "$(command -v gcovr)" ]; then diff --git a/ets2panda/scripts/test_runner.py b/ets2panda/scripts/test_runner.py index 72509098857e1401b093b6bc5a64501a187cb5de..8cafca97578dc721043030c4477361e38ed2bb21 100644 --- a/ets2panda/scripts/test_runner.py +++ b/ets2panda/scripts/test_runner.py @@ -62,7 +62,7 @@ def main(): if not os.path.isfile(testrunner): print("The following script is not executable or exist: {0}".format(testrunner)) - general_cmd = ['python', testrunner, '--build-dir', options.builddir, '--force-generate', + general_cmd = ['python', '-B', testrunner, '--build-dir', options.builddir, '--force-generate', '--show-progress', '--processes', 'all', '--timeout', str(options.timeout)] if options.all: