bugzilla
author Gregory Szorc <gps@mozilla.com>
Fri, 24 Oct 2014 16:35:17 -0700
changeset 359826 ed05413a04c2ef673c2bb0123d2d38d974ae3f23
parent 359770 testing/bugzilla.py@954124a72ed4135b10ed8582a1bba44ad0b2e2cb
child 360276 7db4622ae530570abaf69b6ce2ffc6b08bdaa3d8
permissions -rwxr-xr-x
bugzilla: move testing/bugzilla.py to bugzilla As we focus on making MozReview easier to hack on, we should expose the tools to interact with the various systems in a cleaner way. We move testing/bugzilla.py to ./bugzilla to make it easier to consume.

#!/usr/bin/env 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/.

# This is a script for performing common Bugzilla operations from the command
# line. It is meant to support testing.

import os
import sys

HERE = os.path.abspath(os.path.dirname(__file__))

def main(args):
    sys.path.insert(0, os.path.join(HERE, 'testing'))

    from mach.main import Mach

    m = Mach(os.getcwd())
    m.define_category('bugzilla', 'Bugzilla',
        'Interface with Bugzilla', 50)
    import vcttesting.bugzilla.mach_commands

    return m.run(args)

if __name__ == '__main__':
    sys.exit(main(sys.argv[1:]))