Example #1
0
def make_tarball():

    m = _get_most_recent_tgz("mongodb-")

    c = "test-code-emr.tgz"
    tar = "tar zcf %s src jstests buildscripts" % c

    log_config = "log_config.py"
    if os.path.exists(log_config):
        os.unlink(log_config)

    credentials = do_credentials()
    if credentials:

        builder, buildnum = get_build_info()

        if builder and buildnum:

            file = open(log_config, "wb")
            file.write('username="******"\npassword="******"\n' % credentials)
            file.write('name="%s"\nnumber=%s\n' % (builder, buildnum))

            file.close()

            tar = tar + " " + log_config

    utils.execsys(tar)
    return (m, c)
Example #2
0
def make_tarball():

    m = _get_most_recent_tgz( "mongodb-" )
    
    c = "test-code-emr.tgz"    
    tar = "tar zcf %s src jstests buildscripts" % c

    log_config = "log_config.py"
    if os.path.exists( log_config ):
        os.unlink( log_config )

    credentials = do_credentials()
    if credentials:

        builder , buildnum = get_build_info()
        
        if builder and buildnum:

            file = open( log_config , "wb" )
            file.write( 'username="******"\npassword="******"\n' % credentials )
            file.write( 'name="%s"\nnumber=%s\n'% ( builder , buildnum ) )

            file.close()
            
            tar = tar + " " + log_config

    utils.execsys( tar )
    return ( m , c )
Example #3
0
File: emr.py Project: ehayon/mongo
def _get_status():
    def gh(cmds):
        txt = ""
        for cmd in cmds:
            res = utils.execsys("git " + cmd)
            txt = txt + res[0] + res[1]
        return utils.md5string(txt)

    return "%s-%s" % (utils.execsys("git describe")[0].strip(), gh(["diff", "status"]))
Example #4
0
def _get_status():
    def gh(cmds):
        txt = ""
        for cmd in cmds:
            res = utils.execsys("git " + cmd)
            txt = txt + res[0] + res[1]
        return utils.md5string(txt)

    return "%s-%s" % (utils.execsys("git describe")[0].strip(),
                      gh(["diff", "status"]))
Example #5
0
 def gh( cmds ):
     txt = ""
     for cmd in cmds:
         res = utils.execsys( "git " + cmd )
         txt = txt + res[0] + res[1]
     return utils.md5string( txt )
Example #6
0
File: emr.py Project: ehayon/mongo
def make_tarball():

    m = _get_most_recent_tgz("mongodb-")
    c = "test-code-emr.tgz"
    utils.execsys("tar zcf %s src jstests buildscripts" % c)
    return (m, c)
Example #7
0
 def gh(cmds):
     txt = ""
     for cmd in cmds:
         res = utils.execsys("git " + cmd)
         txt = txt + res[0] + res[1]
     return utils.md5string(txt)