d0cker
author Gregory Szorc <gps@mozilla.com>
Tue, 12 Jan 2016 15:07:29 -0800
changeset 362099 64bc74f4b91a7730c7d03c4fcbe9f4a723813a75
parent 361148 8cd648f3a4e1fb191cb464d8d4b5c5170bec50a6
permissions -rwxr-xr-x
mozreview: copy more read-only processing code (bug 1229468); r=smacleod, dminor This is basically copying a lot of code from pushhooks.py. We don't yet make any database modification as part of this code. This just proves that a rough 1:1 copy continues to work.

#!/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 script is used to manage Docker containers in the context of running
# Mercurial tests.

import os
import sys

from mach.main import Mach

def main(args):
    m = Mach(os.getcwd())
    m.define_category('docker', 'Docker',
        'Common actions involving Docker')
    import vcttesting.docker_mach_commands

    return m.run(args)

if __name__ == '__main__':
    # Unbuffer stdout.
    sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)

    sys.exit(main(sys.argv[1:]))