Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_for_linux(self):
self.assertEqual(utils.get_build_regex('test', 'linux', 32), r'test.*linux-i686\.tar.bz2')
self.assertEqual(utils.get_build_regex('test', 'linux', 64), r'test.*linux-x86_64\.tar.bz2')
self.assertEqual(utils.get_build_regex('test', 'linux', 64, with_ext=False), r'test.*linux-x86_64')
def test_for_mac(self):
self.assertEqual(utils.get_build_regex('test', 'mac', 32), r'test.*mac.*\.dmg')
self.assertEqual(utils.get_build_regex('test', 'mac', 64), r'test.*mac.*\.dmg')
self.assertEqual(utils.get_build_regex('test', 'mac', 64, with_ext=False), r'test.*mac.*')
def test_for_mac(self):
self.assertEqual(utils.get_build_regex('test', 'mac', 32), r'test.*mac.*\.dmg')
self.assertEqual(utils.get_build_regex('test', 'mac', 64), r'test.*mac.*\.dmg')
self.assertEqual(utils.get_build_regex('test', 'mac', 64, with_ext=False), r'test.*mac.*')
def test_for_linux(self):
self.assertEqual(utils.get_build_regex('test', 'linux', 32), r'test.*linux-i686\.tar.bz2')
self.assertEqual(utils.get_build_regex('test', 'linux', 64), r'test.*linux-x86_64\.tar.bz2')
self.assertEqual(utils.get_build_regex('test', 'linux', 64, with_ext=False), r'test.*linux-x86_64')
def test_for_win(self):
self.assertEqual(utils.get_build_regex('test', 'win', 32), r'test.*win32\.zip')
self.assertEqual(utils.get_build_regex('test', 'win', 64), r'test.*win64-x86_64\.zip')
self.assertEqual(utils.get_build_regex('test', 'win', 64, with_ext=False), r'test.*win64-x86_64')
def test_for_win(self):
self.assertEqual(utils.get_build_regex('test', 'win', 32), r'test.*win32\.zip')
self.assertEqual(utils.get_build_regex('test', 'win', 64), r'test.*win64-x86_64\.zip')
self.assertEqual(utils.get_build_regex('test', 'win', 64, with_ext=False), r'test.*win64-x86_64')
def test_for_mac(self):
self.assertEqual(utils.get_build_regex('test', 'mac', 32), r'test.*mac.*\.dmg')
self.assertEqual(utils.get_build_regex('test', 'mac', 64), r'test.*mac.*\.dmg')
self.assertEqual(utils.get_build_regex('test', 'mac', 64, with_ext=False), r'test.*mac.*')
def test_for_win(self):
self.assertEqual(utils.get_build_regex('test', 'win', 32), r'test.*win32\.zip')
self.assertEqual(utils.get_build_regex('test', 'win', 64), r'test.*win64-x86_64\.zip')
self.assertEqual(utils.get_build_regex('test', 'win', 64, with_ext=False), r'test.*win64-x86_64')
def __init__(self, inbound_branch=None, bits=mozinfo.bits, persist=None):
self.inbound_branch = inbound_branch
self.bits = bits
self.persist = persist
os = mozinfo.os
self.build_regex = get_build_regex(self.name, os, bits) + "$"
self.build_info_regex = \
get_build_regex(self.name, os, bits, with_ext=False) + "\.txt$"
self._logger = get_default_logger('Regression Runner')
def __init__(self, inbound_branch=None, bits=mozinfo.bits, persist=None):
self.inbound_branch = inbound_branch
self.bits = bits
self.persist = persist
os = mozinfo.os
self.build_regex = get_build_regex(self.name, os, bits) + "$"
self.build_info_regex = \
get_build_regex(self.name, os, bits, with_ext=False) + "\.txt$"
self._logger = get_default_logger('Regression Runner')