Skip to content

Commit

Permalink
don't test compression if it's not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Jul 20, 2009
1 parent 3153481 commit 8174ed9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildbot/test/test_status.py
Expand Up @@ -901,6 +901,12 @@ def _check(res):


class CompressLog(unittest.TestCase):
# compression is not supported unless bz2 is installed
try:
import bz2
except:
skip = "compression not supported (no bz2 module available)"

def testCompressLogs(self):
bss = setupBuildStepStatus("test-compress")
bss.build.builder.setLogCompressionLimit(1024)
Expand Down

0 comments on commit 8174ed9

Please sign in to comment.