Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(21)  |  Call(9)  |  Derive(1)  |  Import(11)
Convenience class for handling processes with default output handlers.

If no processOutputLine keyword argument is specified, write all
output to stdout.  Otherwise, the function specified by this argument
will be called for each line of output; the output will not be written
to stdout automatically.

If storeOutput==True, the output produced by the process will be saved
as self.output.
(more...)

src/m/o/mozharness-HEAD/mozharness/base/script.py   mozharness(Download)
    import json
 
from mozprocess import ProcessHandler
from mozharness.base.config import BaseConfig
from mozharness.base.log import SimpleFileLogger, MultiFileLogger, \
                    self.info("Automation Error: mozprocess timed out after %s seconds running %s" % (str(output_timeout), str(command)))
 
                p = ProcessHandler(command,
                                   env=env,
                                   cwd=cwd,

src/b/2/b2g-commands-0.9/b2gcommands/sync_commands.py   b2g-commands(Download)
        env = os.environ.copy()
 
        from mozprocess import ProcessHandler
        p = ProcessHandler(command, env=env)
        p.run()
            command.append(device)
 
        from mozprocess import ProcessHandler
        p = ProcessHandler(command, env=env)
        p.run()

src/b/2/b2g-commands-0.9/b2gcommands/build_commands.py   b2g-commands(Download)
            env['B2G_VALGRIND'] = '1'
 
        from mozprocess import ProcessHandler
        p = ProcessHandler(command, env=env)
        p.run()
            command.insert(0, 'BUILD_APP_NAME=%s' % app)
 
        from mozprocess import ProcessHandler
        p = ProcessHandler(command)
        p.run()

src/b/2/b2gautomation-HEAD/b2gautomation/make_device_manifests.py   b2gautomation(Download)
# 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 mozprocess import ProcessHandler
def execute_cmd(cmd, cwd):
    print 'executing', cmd
    proc = ProcessHandler(cmd, cwd=cwd)
    proc.processOutput(timeout=180)
    assert(proc.waitForFinish() == 0)

src/w/p/wptrunner-0.2.5/wptrunner/executor.py   wptrunner(Download)
 
import marionette
from mozprocess import ProcessHandler
 
import testrunner
    def run_test(self, test):
        self.result_data = None
        self.result_flag = threading.Event()
 
        proc = ProcessHandler([self.binary,

src/b/2/b2g-commands-0.9/b2gcommands/run_commands.py   b2g-commands(Download)
    def emulator(self):
        command = os.path.join(self.b2g_home, 'run-emulator.sh')
 
        from mozprocess import ProcessHandler
        p = ProcessHandler(command)
    def gdb(self):
        command = os.path.join(self.b2g_home, 'run-gdb.sh')
 
        from mozprocess import ProcessHandler
        p = ProcessHandler(command)

src/w/p/wptrunner-0.2.5/wptrunner/wptrunner.py   wptrunner(Download)
from mozlog.structured.handlers import StreamHandler
from mozlog.structured.formatters import JSONFormatter
from mozprocess import ProcessHandler
import moznetwork
 

src/p/e/peptest-1.0/peptest/pepprocess.py   peptest(Download)
# ***** END LICENSE BLOCK *****
 
from mozprocess import ProcessHandler
from pepresults import Results
from time import sleep
class PepProcess(ProcessHandler):
    """
    Process handler for running peptests
    """
    def __init__(self, cmd,