Bug 1575135 - Fix mock_pkg_config failure case. r=nalexander

It only happens when things go badly, which is why it doesn't cause
problems, but when moving things around, triggering the error, we
currently get a formatting error rather than the actual error.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Hommey 2019-08-20 16:42:06 +00:00
Родитель cc52fc2e1a
Коммит 8db488eb24
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -652,7 +652,7 @@ Java SDK directory or use '--with-java-bin-path={java-bin-dir}'
return 0, '-l%s' % args[1], ''
if args[0] == '--version':
return 0, mock_pkg_config_version, ''
self.fail("Unexpected arguments to mock_pkg_config: %s" % args)
self.fail("Unexpected arguments to mock_pkg_config: %s" % (args,))
def get_result(cmd, args=[], extra_paths=None):
return self.get_result(textwrap.dedent('''\