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)
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 )
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"]))
def gh( cmds ): txt = "" for cmd in cmds: res = utils.execsys( "git " + cmd ) txt = txt + res[0] + res[1] return utils.md5string( txt )
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)
def gh(cmds): txt = "" for cmd in cmds: res = utils.execsys("git " + cmd) txt = txt + res[0] + res[1] return utils.md5string(txt)