gecko-dev/build/compare-mozconfig/compare-mozconfigs-wrapper.py
Gregory Szorc 2ee15dbd8d Bug 1419182 - Consolidate mozconfig comparison logic into compare-mozconfigs.py; r=mshal
Hopefully this makes it more obvious how all of this is hooked
together.

MozReview-Commit-ID: 1jeyIZgHYht

--HG--
extra : rebase_source : 961474b1c19eacdcfe5ed2d90ba0d1b16a5a29c3
2017-11-20 14:47:01 -08:00

35 lines
825 B
Python

#!/usr/bin/python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import unicode_literals
import logging
import mozunit
import os
import subprocess
import unittest
from buildconfig import substs
log = logging.getLogger(__name__)
class TestCompareMozconfigs(unittest.TestCase):
def test_compare_mozconfigs(self):
topsrcdir = substs['top_srcdir']
ret = subprocess.call([
substs['PYTHON'],
os.path.join(topsrcdir, 'build', 'compare-mozconfig',
'compare-mozconfigs.py'),
topsrcdir
])
self.assertEqual(0, ret)
if __name__ == '__main__':
mozunit.main()