Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: v2.0
Fetching contributors…

Cannot retrieve contributors at this time

file 22 lines (18 sloc) 0.537 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# bb tools

import os
import re

def checkOk():
    dir = os.getcwd()
    m = re.compile( ".*/.*_V(\d+\.\d+)/mongo" ).findall( dir )
    if len(m) == 0:
        return
    if len(m) > 1:
        raise Exception( "unexpected: " + str(m) )
    
    m = "v" + m[0]
    print( m )
    print( "excpted version [" + m + "]" )

    from subprocess import Popen, PIPE
    diff = Popen( [ "git", "diff", "origin/v1.2" ], stdout=PIPE ).communicate()[ 0 ]
    if len(diff) > 0:
        print( diff )
        raise Exception( "build bot broken?" )
Something went wrong with that request. Please try again.