Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.538 kB
# 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( "expected 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?" )
Jump to Line
Something went wrong with that request. Please try again.