view tests/mockblackbox.py @ 28443:d713fa934fb9

buildrpm: move creation of RPM directories from dockerrpm Handling the creation of the RPM directories in buildrpm is more consistent and takes care of non-docker builds as well.
author Mathias De Maré <mathias.demare@gmail.com>
date Thu, 07 Jan 2016 06:44:37 +0100
parents 0ead0a07ed9c
children
line wrap: on
line source

from mercurial import util

def makedate():
    return 0, 0
def getuser():
    return 'bob'

# mock the date and user apis so the output is always the same
def uisetup(ui):
    util.makedate = makedate
    util.getuser = getuser