Skip to content

Commit

Permalink
Allow download of files with specified extension for Tinderbox builds…
Browse files Browse the repository at this point in the history
… on Windows (#264)
  • Loading branch information
Syd Polk authored and whimboo committed Mar 4, 2015
1 parent 942d972 commit d4774bf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mozdownload/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,8 @@ def binary_regex(self):
'linux64': r'.*\.%(EXT)s$',
'mac': r'.*\.%(EXT)s$',
'mac64': r'.*\.%(EXT)s$',
'win32': r'.*(\.installer%(STUB)s)\.%(EXT)s$',
'win64': r'.*(\.installer%(STUB)s)\.%(EXT)s$'}
'win32': r'(\.installer%(STUB)s)?\.%(EXT)s$',
'win64': r'(\.installer%(STUB)s)?\.%(EXT)s$'}

regex = regex_base_name + regex_suffix[self.platform]

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
20150302030204
https://hg.mozilla.org/mozilla-central/rev/eea6188b9b05
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
20150302121431
https://hg.mozilla.org/mozilla-central/rev/abb7f0d180da
14 changes: 14 additions & 0 deletions tests/tinderbox_scraper/test_tinderbox_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,20 @@
'target': 'mozilla-central-firefox-25.0a1.en-US.linux-i686.txt',
'target_url': 'firefox/tinderbox-builds/mozilla-central-linux/'
'1374583608/firefox-25.0a1.en-US.linux-i686.txt'},
# -a firefox -t tinderbox -p win32 --extension=txt
{'args': {'application': 'firefox',
'extension': 'txt',
'platform': 'win32'},
'target': 'mozilla-central-firefox-25.0a1.en-US.win32.txt',
'target_url': 'firefox/tinderbox-builds/mozilla-central-win32/'
'1374568307/firefox-25.0a1.en-US.win32.txt'},
# -a firefox -t tinderbox -p mac --extension=txt
{'args': {'application': 'firefox',
'extension': 'txt',
'platform': 'mac'},
'target': 'mozilla-central-firefox-25.0a1.en-US.mac.txt',
'target_url': 'firefox/tinderbox-builds/mozilla-central-macosx64/'
'1374568307/firefox-25.0a1.en-US.mac.txt'},
]

thunderbird_tests = [
Expand Down

0 comments on commit d4774bf

Please sign in to comment.