Skip to content

Commit

Permalink
Merge pull request #3603 from gizmoguy/disable-unit-tests
Browse files Browse the repository at this point in the history
Temporarily disable unit tests on package builds.
  • Loading branch information
gizmoguy authored Jun 9, 2020
2 parents 6c73bc2 + d7eadb1 commit e3a4c9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@ override_dh_auto_install:

override_dh_auto_build:
dh_auto_build

override_dh_auto_test:
dh_auto_test -- --system=custom --test-args='{interpreter} -m unittest discover tests/unit/faucet/ && {interpreter} -m unittest discover tests/unit/gauge/'
6 changes: 1 addition & 5 deletions docker/install-faucet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ $APK add -U git $BUILDDEPS && \
$dir/retrycmd.sh "$PIP3 -r $FROOT/requirements.txt" && \
$PIP3 $FROOT

if [ "$(uname -m)" == "x86_64" ]; then
echo $FROOT/tests/unit/faucet/test_*.py $FROOT/tests/unit/gauge/test_*.py | xargs realpath | shuf | parallel --delay 1 --bar --halt now,fail=1 -j 2 python3 -m pytest
else
echo "Skipping tests on $(uname -m) platform"
fi
echo "Skipping tests on $(uname -m) platform"

pip3 uninstall -y $TESTDEPS || exit 1
for i in $BUILDDEPS ; do
Expand Down

0 comments on commit e3a4c9a

Please sign in to comment.