diff --git a/debian/rules b/debian/rules index 4eb6368d45231f3a39a3f59ecb05eb4a18d11f73..3e125f6420cfc7e0fcdd5d47664fbfd491dd3303 100755 --- a/debian/rules +++ b/debian/rules @@ -7,5 +7,5 @@ export PYBUILD_NAME=swh-model override_dh_auto_test: PYBUILD_SYSTEM=custom \ - PYBUILD_TEST_ARGS="python{version} -m nose swh -sva '!db'" \ + PYBUILD_TEST_ARGS="python{version} -m nose swh -sva '!db,!fs'" \ dh_auto_test diff --git a/swh/model/tests/test_git.py b/swh/model/tests/test_git.py index 3ed3ff34c26c669fa044c9c5330dc17f7c06c0a1..4b94496370127911d310a4ab635354079eccf3c2 100644 --- a/swh/model/tests/test_git.py +++ b/swh/model/tests/test_git.py @@ -9,6 +9,7 @@ import subprocess import tempfile import unittest +from nose.plugins.attrib import attr from nose.tools import istest from swh.model import git @@ -137,8 +138,10 @@ blah self.assertEqual(checksum, self.checksums['tag_sha1_git']) +@attr('fs') class GitHashWalkArborescenceTree(unittest.TestCase): - """Root class to ease walk and git hash testing without side-effecty problems. + """Root class to ease walk and git hash testing without side-effecty + problems. """ def setUp(self): @@ -512,7 +515,8 @@ def ignore_svn_folder(dirpath): return b'.svn' not in dirpath -class GitHashUpdateRealUseCase(GitHashWalkArborescenceTree): +@attr('fs') +class GitHashUpdateRealUseCase(unittest.TestCase): """Test `walk and git hash only on modified fs` functions. """