Limits perf apps to those currently available on build machine (bug 674350)

This commit is contained in:
Kumar McMillan 2011-09-02 12:44:22 -05:00
Родитель ebbb142490
Коммит 828d32b473
2 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -17,7 +17,7 @@ log = logging.getLogger('z.devhub.task')
# These are all the apps available for a file to be tested against:
ALL_APPS = ('firefox3.5', 'firefox3.6', 'firefox4.0')
ALL_APPS = ('firefox3.6', 'firefox6.0')
# This translates AMO platforms into performance service platforms:
PLATFORM_MAP = {amo.PLATFORM_LINUX.id: ('linux', 'linux64'),

Просмотреть файл

@ -55,16 +55,13 @@ class TestPerfViews(amo.tests.TestCase):
re = self.start()
eq_(re, {'success': True})
for os in ('linux', 'linux64'):
self.assert_call(((self.file, os, 'firefox3.5'), {}))
self.assert_call(((self.file, os, 'firefox3.6'), {}))
self.assert_call(((self.file, os, 'firefox4.0'), {}))
self.assert_call(((self.file, os, 'firefox6.0'), {}))
def test_start_all(self):
self.set_platform(amo.PLATFORM_ALL)
self.start()
self.assert_call(((self.file, 'linux', 'firefox4.0'), {}))
self.assert_call(((self.file, 'win32', 'firefox4.0'), {}))
self.assert_call(((self.file, 'macosx', 'firefox4.0'), {}))
self.assert_call(((self.file, 'linux', 'firefox6.0'), {}))
def test_unsupported_plat(self):
self.set_platform(amo.PLATFORM_ANDROID)