How to use the mozregression.utils.parse_bits function in mozregression

To help you get started, we’ve selected a few mozregression examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mozilla / mozregression / tests / unit / test_utils.py View on Github external
def test_parse_64(self, mozinfo):
        mozinfo.bits = 64
        self.assertEqual(utils.parse_bits('32'), 32)
        self.assertEqual(utils.parse_bits('64'), 64)
github mozilla / mozregression / tests / unit / test_utils.py View on Github external
def test_parse_64(self, mozinfo):
        mozinfo.bits = 64
        self.assertEqual(utils.parse_bits('32'), 32)
        self.assertEqual(utils.parse_bits('64'), 64)
github mozilla / mozregression / tests / unit / test_utils.py View on Github external
def test_parse_32(self, mozinfo):
        mozinfo.bits = 32
        self.assertEqual(utils.parse_bits('32'), 32)
        self.assertEqual(utils.parse_bits('64'), 32)
github mozilla / mozregression / tests / unit / test_utils.py View on Github external
def test_parse_32(self, mozinfo):
        mozinfo.bits = 32
        self.assertEqual(utils.parse_bits('32'), 32)
        self.assertEqual(utils.parse_bits('64'), 32)
github mozilla / mozregression / mozregression / runinbound.py View on Github external
help="path to profile to user", metavar="PATH")
    parser.add_option("--bits", dest="bits",
                      help="force 32 or 64 bit version (only applies to"
                      " x86_64 boxes)",
                      choices=("32", "64"), default=mozinfo.bits)
    parser.add_option("--persist", dest="persist",
                      help="the directory in which files are to persist"
                      " ie. /Users/someuser/Documents")
    parser.add_option("--inbound-branch", dest="inbound_branch",
                      help="inbound branch name on ftp.mozilla.org",
                      metavar="[tracemonkey|mozilla-1.9.2]", default=None)

    options, args = parser.parse_args(args)
    if not options.timestamp:
        sys.exit("timestamp must be specified")
    options.bits = parse_bits(options.bits)
    runner = InboundRunner(addons=options.addons, profile=options.profile,
                           bits=options.bits, persist=options.persist,
                           inbound_branch=options.inbound_branch)
    runner.start(parse_date(options.date))
    try:
        runner.wait()
    except KeyboardInterrupt:
        runner.stop()
github mozilla / mozregression / mozregression / runnightly.py View on Github external
metavar="[%s]" % "|".join(NightlyRunner.apps.keys()),
                      choices=NightlyRunner.apps.keys(),
                      default="firefox")
    parser.add_option("--inbound-branch", dest="inbound_branch",
                      help="inbound branch name on ftp.mozilla.org",
                      metavar="[tracemonkey|mozilla-1.9.2]", default=None)
    parser.add_option("--bits", dest="bits",
                      help="force 32 or 64 bit version (only applies to"
                      " x86_64 boxes)",
                      choices=("32", "64"), default=mozinfo.bits)
    parser.add_option("--persist", dest="persist",
                      help="the directory in which files are to persist ie."
                      " /Users/someuser/Documents")
    options, args = parser.parse_args(args)

    options.bits = parse_bits(options.bits)

    # run nightly
    runner = NightlyRunner(appname=options.app, addons=options.addons,
                           profile=options.profile,
                           inbound_branch=options.inbound_branch,
                           bits=options.bits, persist=options.persist)
    runner.start(parse_date(options.date))
    try:
        runner.wait()
    except KeyboardInterrupt:
        runner.stop()
github mozilla / mozregression / mozregression / regression.py View on Github external
parser.add_argument("--bits",
                        choices=("32", "64"),
                        default=mozinfo.bits,
                        help=("force 32 or 64 bit version (only applies to"
                              " x86_64 boxes). Default: %(default)s bits"))

    parser.add_argument("--persist",
                        help="the directory in which files are to persist")

    parser.add_argument("--http-cache-dir", dest="http_cache_dir",
                        help="the directory for caching http requests")

    commandline.add_logging_group(parser)
    options = parser.parse_args()
    options.bits = parse_bits(options.bits)
    return options