Bug 1628200 - Fix config/tests/test_mozbuild_reading.py. r=rstewart

Since the test goes through all moz.build files disregarding DIRS and
the conditions that may disable directories, in some cases, moz.builds
can fail to be evaluated properly because of missing variables in
config.status. This time (because it's not the first), it's
LLVM_DLLTOOL.

After fixing that, it turns out many of the files/directories pointed to
by Files() directives were removed or moved.

While here, make the test script python3-ready.

Differential Revision: https://phabricator.services.mozilla.com/D70157

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Hommey 2020-04-09 00:24:29 +00:00
parent 0fb4a38faf
commit ac5b6e6cd0
12 changed files with 9 additions and 45 deletions

View File

@ -42,7 +42,7 @@ OS_LIBS += [
'ntdll_freestanding',
]
if CONFIG['COMPILE_ENVIRONMENT']:
if CONFIG['COMPILE_ENVIRONMENT'] and CONFIG['LLVM_DLLTOOL']:
GeneratedFile(
'%sntdll_freestanding.%s' % (CONFIG['LIB_PREFIX'],
CONFIG['LIB_SUFFIX']),

View File

@ -78,7 +78,7 @@ class TestMozbuildReading(unittest.TestCase):
try:
config = mb.config_environment
except Exception as e:
if e.message == 'config.status not available. Run configure.':
if str(e) == 'config.status not available. Run configure.':
raise unittest.SkipTest('failing without config.status')
raise

View File

@ -58,10 +58,6 @@ with Files('chrome/*690056*'):
with Files('chrome/*92598*'):
BUG_COMPONENT = ('Core', 'Networking: HTTP')
with Files('chrome/*private_hidden_window*'):
BUG_COMPONENT = ('Firefox', 'Private Browsing')
with Files('iframesandbox/**'):
BUG_COMPONENT = ('Core', 'Security')

View File

@ -24,8 +24,6 @@ with Files('IdpSandbox.jsm'):
BUG_COMPONENT = component_signaling
with Files('PeerConnection*'):
BUG_COMPONENT = component_signaling
with Files('RTC*'):
BUG_COMPONENT = component_signaling
component_av = ('Core', 'WebRTC: Audio/Video')
with Files('GetUserMedia*'):

View File

@ -91,3 +91,6 @@ FINAL_LIBRARY = 'xul'
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += ['-Wno-error=shadow']
with Files("tests/*1151186*"):
BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")

View File

@ -242,12 +242,6 @@ with Files('view-source/**'):
BUG_COMPONENT = ('Core', 'DOM: HTML Parser')
with Files('w3c-css/**'):
BUG_COMPONENT = ('Core', 'Layout')
with Files('w3c-css/received/css-conditional/**'):
BUG_COMPONENT = ('Core', 'CSS Parsing and Computation')
with Files('w3c-css/received/css-namespaces/**'):
BUG_COMPONENT = ('Core', 'CSS Parsing and Computation')
with Files('w3c-css/received/css-values/**'):
BUG_COMPONENT = ('Core', 'CSS Parsing and Computation')
with Files('w3c-css/submitted/conditional3/**'):
BUG_COMPONENT = ('Core', 'CSS Parsing and Computation')
with Files('w3c-css/submitted/css21/**'):

View File

@ -14,6 +14,9 @@ with Files('devtools/**'):
with Files('gdbpp/**'):
BUG_COMPONENT = ('Firefox Build System', 'General')
with Files('lldbutils/**'):
BUG_COMPONENT = ('Core', 'General')
with Files('mach/**'):
BUG_COMPONENT = ('Firefox Build System', 'Mach Core')

View File

@ -20,9 +20,6 @@ with Files('blessings/**'):
with Files('compare-locales/**'):
BUG_COMPONENT = ('Localization Infrastructure and Tools', 'compare-locales')
with Files('configobj/**'):
BUG_COMPONENT = ('Firefox Build System', 'General')
with Files('dlmanager/**'):
BUG_COMPONENT = ('Firefox Build System', 'General')
@ -35,9 +32,6 @@ with Files('futures/**'):
with Files('jsmin/**'):
BUG_COMPONENT = ('GeckoView', 'General')
with Files('lldbutils/**'):
BUG_COMPONENT = ('Core', 'General')
with Files('mock-1.0.0/**'):
BUG_COMPONENT = ('Firefox Build System', 'General')
@ -97,6 +91,3 @@ with Files('virtualenv/**'):
with Files('voluptuous/**'):
BUG_COMPONENT = ('Firefox Build System', 'Task Configuration')
with Files('which/**'):
BUG_COMPONENT = ('Firefox Build System', 'General')

View File

@ -59,15 +59,9 @@ with Files('aboutwebrtc/*'):
with Files('gmp-sources/*'):
BUG_COMPONENT = ('Toolkit', 'General')
with Files('tests/browser/browser_audio*'):
BUG_COMPONENT = ('Core', 'Audio/Video: Playback')
with Files('tests/browser/browser_*autoplay*'):
BUG_COMPONENT = ('Core', 'Audio/Video: Playback')
with Files('tests/browser/*block*'):
BUG_COMPONENT = ('Core', 'Audio/Video: Playback')
with Files('tests/browser/*silent*'):
BUG_COMPONENT = ('Core', 'Audio/Video: Playback')
@ -128,9 +122,6 @@ with Files('tests/chrome/*drop*'):
with Files('tests/chrome/*1048178*'):
BUG_COMPONENT = ('Core', 'XUL')
with Files('tests/chrome/*253481*'):
BUG_COMPONENT = ('Core', 'DOM: Editor')
with Files('tests/chrome/*263683*'):
BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
@ -168,9 +159,6 @@ with Files('tests/chrome/*557987*'):
with Files('tests/chrome/*562554*'):
BUG_COMPONENT = ('Firefox', 'Menus')
with Files('tests/chrome/*570192*'):
BUG_COMPONENT = ('Firefox', 'Session Restore')
with Files('tests/chrome/*findbar*'):
BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
@ -183,9 +171,6 @@ with Files('tests/mochitest/*autocomplete*'):
with Files('tests/mochitest/*mousecapture*'):
BUG_COMPONENT = ('Core', 'DOM: UI Events & Focus Handling')
with Files('tests/reftests/*multiline*'):
BUG_COMPONENT = ('Core', 'XBL')
with Files('tests/reftests/*videocontrols*'):
BUG_COMPONENT = ('Toolkit', 'Video/Audio Controls')

View File

@ -104,5 +104,5 @@ FINAL_TARGET_PP_FILES += [
'data/xpcshellConstantsPP.js',
]
with Files("browser/browser_telemetry_updatePing_ready.js"):
with Files("browser/browser_telemetry_updatePing_*_ready.js"):
BUG_COMPONENT = ("Toolkit", "Telemetry")

View File

@ -58,9 +58,6 @@ with Files("vcs/**"):
SPHINX_TREES['moztreedocs'] = 'moztreedocs/docs'
with Files('lint/docs/**'):
SCHEDULES.exclusive = ['docs']
SPHINX_TREES['try'] = 'tryselect/docs'
SPHINX_TREES['fuzzing'] = 'fuzzing/docs'

View File

@ -19,9 +19,6 @@ with Files("TestAppShellSteadyState.cpp"):
with Files("TestChromeMargin.cpp"):
BUG_COMPONENT = ("Core", "Widget: Win32")
with Files("*1151186*"):
BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
with Files("*413277*"):
BUG_COMPONENT = ("Core", "Widget: Cocoa")