Skip to content

Commit

Permalink
Remove B2G related code and tests (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebelhom authored and whimboo committed Aug 23, 2017
1 parent 253b9e2 commit 0abcc78
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 167 deletions.
4 changes: 0 additions & 4 deletions mozdownload/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ def __init__(self, scraper_type, **kwargs):
if scraper_type in ('try') and not kwargs.get('revision'):
raise ValueError('The revision of the build has to be specified.')

if kwargs.get('application') == 'b2g' and scraper_type in ('candidate', 'release'):
error_msg = '%s build is not yet supported for B2G' % scraper_type
raise NotSupportedError(error_msg)

if kwargs.get('application') == 'fennec' and scraper_type not in ('daily'):
error_msg = '%s build is not yet supported for fennec' % scraper_type
raise NotSupportedError(error_msg)
Expand Down
4 changes: 2 additions & 2 deletions mozdownload/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
from mozdownload.utils import urljoin


APPLICATIONS = ('b2g', 'firefox', 'fennec', 'thunderbird')
APPLICATIONS = ('firefox', 'fennec', 'thunderbird')

# Some applications contain all locales in a single build
APPLICATIONS_MULTI_LOCALE = ('b2g', 'fennec')
APPLICATIONS_MULTI_LOCALE = ('fennec')

# Used if the application is named differently than the subfolder on the server
APPLICATIONS_TO_FTP_DIRECTORY = {'fennec': 'mobile'}
Expand Down
66 changes: 1 addition & 65 deletions tests/daily_scraper/test_daily_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,70 +256,6 @@
},
]

b2g_tests = [
# -p linux --branch=mozilla-central
{'args': {'application': 'b2g',
'platform': 'linux',
'branch': 'mozilla-central'},
'filename': '2014-01-12-04-02-02-mozilla-central-b2g-29.0a1.multi.linux-i686.tar.bz2',
'url': 'b2g/nightly/2014/01/2014-01-12-04-02-02-mozilla-central/b2g-29.0a1.multi.linux-i686.tar.bz2'
},
# -p linux64 --branch=mozilla-central
{'args': {'application': 'b2g',
'platform': 'linux64',
'branch': 'mozilla-central'},
'filename': '2014-01-12-04-02-02-mozilla-central-b2g-29.0a1.multi.linux-x86_64.tar.bz2',
'url': 'b2g/nightly/2014/01/2014-01-12-04-02-02-mozilla-central/b2g-29.0a1.multi.linux-x86_64.tar.bz2'
},
# -p mac64 --branch=mozilla-central
{'args': {'application': 'b2g',
'platform': 'mac64',
'branch': 'mozilla-central'},
'filename': '2014-01-12-04-02-02-mozilla-central-b2g-29.0a1.multi.mac64.dmg',
'url': 'b2g/nightly/2014/01/2014-01-12-04-02-02-mozilla-central/b2g-29.0a1.multi.mac64.dmg'
},
# -p mac64 --branch=mozilla-central
{'args': {'application': 'b2g',
'platform': 'win32',
'branch': 'mozilla-central'},
'filename': '2014-01-12-04-02-02-mozilla-central-b2g-29.0a1.multi.win32.zip',
'url': 'b2g/nightly/2014/01/2014-01-12-04-02-02-mozilla-central/b2g-29.0a1.multi.win32.zip'
},
# -p win32 --branch=mozilla-central -l en-US
{'args': {'application': 'b2g',
'platform': 'win32',
'branch': 'mozilla-central',
'locale': 'en-US'},
'filename': '2014-01-12-04-02-02-mozilla-central-b2g-29.0a1.en-US.win32.zip',
'url': 'b2g/nightly/2014/01/2014-01-12-04-02-02-mozilla-central/en-US/b2g-29.0a1.en-US.win32.zip'
},
# -p win32 --branch=mozilla-central --date=2013-07-01
{'args': {'application': 'b2g',
'platform': 'win32',
'branch': 'mozilla-central',
'date': '2013-07-01'},
'filename': '2013-07-01-04-02-02-mozilla-central-b2g-29.0a1.multi.win32.zip',
'url': 'b2g/nightly/2013/07/2013-07-01-04-02-02-mozilla-central/b2g-29.0a1.multi.win32.zip'
},
# -p win32 --branch=mozilla-central --date=2013-07-01 --build-number=1
{'args': {'application': 'b2g',
'platform': 'win32',
'branch': 'mozilla-central',
'date': '2013-07-01',
'build_number': 1},
'filename': '2013-07-01-04-01-01-mozilla-central-b2g-29.0a1.multi.win32.zip',
'url': 'b2g/nightly/2013/07/2013-07-01-04-01-01-mozilla-central/b2g-29.0a1.multi.win32.zip'
},
# -p linux --branch=mozilla-central --build-id=20130702031336
{'args': {'application': 'b2g',
'platform': 'linux',
'branch': 'mozilla-central',
'build_id': '20130702031336'},
'filename': '2013-07-02-03-13-36-mozilla-central-b2g-29.0a1.multi.linux-i686.tar.bz2',
'url': 'b2g/nightly/2013/07/2013-07-02-03-13-36-mozilla-central/b2g-29.0a1.multi.linux-i686.tar.bz2'
}
]

fennec_tests = [
# -p android-api-9 --branch=mozilla-central
{'args': {'application': 'fennec',
Expand Down Expand Up @@ -358,7 +294,7 @@
},
]

tests = firefox_tests + thunderbird_tests + b2g_tests + fennec_tests
tests = firefox_tests + thunderbird_tests + fennec_tests


class TestDailyScraper(mhttpd.MozHttpdBaseTest):
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0abcc78

Please sign in to comment.