| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,21 +58,6 @@ def setUpClass(cls): | |||
| 58 | 58 | ||
| 59 | 59 | #{ Decorators | |
| 60 | 60 | ||
| 61 | - def skip_on_travis_ci(func): | ||
| 62 | - """All tests decorated with this one will raise SkipTest when run on travis ci. | ||
| 63 | - Use it to workaround difficult to solve issues | ||
| 64 | - NOTE: copied from bcore (https://github.com/Byron/bcore)""" | ||
| 65 | - @wraps(func) | ||
| 66 | - def wrapper(self, *args, **kwargs): | ||
| 67 | - if 'TRAVIS' in os.environ: | ||
| 68 | - import pytest | ||
| 69 | - pytest.skip("Cannot run on travis-ci") | ||
| 70 | - # end check for travis ci | ||
| 71 | - return func(self, *args, **kwargs) | ||
| 72 | - # end wrapper | ||
| 73 | - return wrapper | ||
| 74 | - | ||
| 75 | - | ||
| 76 | 61 | def with_rw_directory(func): | |
| 77 | 62 | """Create a temporary directory which can be written to, remove it if the | |
| 78 | 63 | test succeeds, but leave it otherwise to aid additional debugging""" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,6 @@ | |||
| 17 | 17 | from gitdb.typ import str_blob_type | |
| 18 | 18 | from gitdb.exc import UnsupportedOperation | |
| 19 | 19 | from gitdb.db.pack import PackedDB | |
| 20 | - from gitdb.test.lib import skip_on_travis_ci | ||
| 21 | 20 | ||
| 22 | 21 | import sys | |
| 23 | 22 | import os | |
@@ -26,7 +25,6 @@ | |||
| 26 | 25 | ||
| 27 | 26 | class TestPackedDBPerformance(TestBigRepoR): | |
| 28 | 27 | ||
| 29 | - @skip_on_travis_ci | ||
| 30 | 28 | def test_pack_random_access(self): | |
| 31 | 29 | pdb = PackedDB(os.path.join(self.gitrepopath, "objects/pack")) | |
| 32 | 30 | ||
@@ -79,7 +77,6 @@ def test_pack_random_access(self): | |||
| 79 | 77 | print("PDB: Obtained %i streams by sha and read all bytes totallying %i KiB ( %f KiB / s ) in %f s ( %f streams/s )" % | |
| 80 | 78 | (max_items, total_kib, total_kib / (elapsed or 1), elapsed, max_items / (elapsed or 1)), file=sys.stderr) | |
| 81 | 79 | ||
| 82 | - @skip_on_travis_ci | ||
| 83 | 80 | def test_loose_correctness(self): | |
| 84 | 81 | """based on the pack(s) of our packed object DB, we will just copy and verify all objects in the back | |
| 85 | 82 | into the loose object db (memory). | |
@@ -106,7 +103,6 @@ def test_loose_correctness(self): | |||
| 106 | 103 | mdb._cache.clear() | |
| 107 | 104 | # end for each sha to copy | |
| 108 | 105 | ||
| 109 | - @skip_on_travis_ci | ||
| 110 | 106 | def test_correctness(self): | |
| 111 | 107 | pdb = PackedDB(os.path.join(self.gitrepopath, "objects/pack")) | |
| 112 | 108 | # disabled for now as it used to work perfectly, checking big repositories takes a long time | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,6 @@ | |||
| 12 | 12 | from gitdb.db.pack import PackedDB | |
| 13 | 13 | from gitdb.stream import NullStream | |
| 14 | 14 | from gitdb.pack import PackEntity | |
| 15 | - from gitdb.test.lib import skip_on_travis_ci | ||
| 16 | 15 | ||
| 17 | 16 | import os | |
| 18 | 17 | import sys | |
@@ -34,7 +33,6 @@ def write(self, d): | |||
| 34 | 33 | ||
| 35 | 34 | class TestPackStreamingPerformance(TestBigRepoR): | |
| 36 | 35 | ||
| 37 | - @skip_on_travis_ci | ||
| 38 | 36 | def test_pack_writing(self): | |
| 39 | 37 | # see how fast we can write a pack from object streams. | |
| 40 | 38 | # This will not be fast, as we take time for decompressing the streams as well | |
@@ -61,7 +59,6 @@ def test_pack_writing(self): | |||
| 61 | 59 | print(sys.stderr, "PDB Streaming: Wrote pack of size %i kb in %f s (%f kb/s)" % | |
| 62 | 60 | (total_kb, elapsed, total_kb / (elapsed or 1)), sys.stderr) | |
| 63 | 61 | ||
| 64 | - @skip_on_travis_ci | ||
| 65 | 62 | def test_stream_reading(self): | |
| 66 | 63 | # raise SkipTest() | |
| 67 | 64 | pdb = PackedDB(os.path.join(self.gitrepopath, "objects/pack")) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,6 @@ | |||
| 20 | 20 | from gitdb.test.lib import ( | |
| 21 | 21 | make_memory_file, | |
| 22 | 22 | with_rw_directory, | |
| 23 | - skip_on_travis_ci | ||
| 24 | 23 | ) | |
| 25 | 24 | ||
| 26 | 25 | ||
@@ -44,7 +43,6 @@ class TestObjDBPerformance(TestBigRepoR): | |||
| 44 | 43 | large_data_size_bytes = 1000 * 1000 * 50 # some MiB should do it | |
| 45 | 44 | moderate_data_size_bytes = 1000 * 1000 * 1 # just 1 MiB | |
| 46 | 45 | ||
| 47 | - @skip_on_travis_ci | ||
| 48 | 46 | @with_rw_directory | |
| 49 | 47 | def test_large_data_streaming(self, path): | |
| 50 | 48 | ldb = LooseObjectDB(path) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments