Update run_tests.sh and remove from PREUPLOAD.cfg.
run_tests.sh updated to:
- Make coverage run by default
- Run coverage through python since coverage may not be in PATH
- Create coverage report in /tmp and print out a link to coverage report
- Add check for run_tests.sh to make sure req python libs are installed.
I removed run_tests.sh from PREUPLOAD.cfg because those checks
shouldn't:
- require anything outside the src tree
- require a build env
- write to the f/s
The unittests should be run as part of Treehugger and so a subsequent cl
will be coming to fix that.
Bug: 110430047
Test: ./run_tests.sh
Change-Id: I113bd2820eeb2fc9e502d6613113bd16947c0c5e
diff --git a/.coveragerc b/.coveragerc
index b730a35..7d1f7ac 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -8,7 +8,8 @@
# omit file patterns must be listed one per line. */.local/* /usr/*
omit =
*_test.py
-
-[html]
-directory = htmlcov
-
+ *__init__.py
+ *public/acloud_kernel/*
+ # TODO: Remove the bottom 2 when the files are deleted.
+ *public/__main__.py
+ *setup.py