##// END OF EJS Templates
tests: mock getpid to reduce glob usage...
timeless -
r28028:ac49ecb2 default
parent child Browse files
Show More
@@ -4,8 +4,11 def makedate():
4 return 0, 0
4 return 0, 0
5 def getuser():
5 def getuser():
6 return 'bob'
6 return 'bob'
7 def getpid():
8 return 5000
7
9
8 # mock the date and user apis so the output is always the same
10 # mock the date and user apis so the output is always the same
9 def uisetup(ui):
11 def uisetup(ui):
10 util.makedate = makedate
12 util.makedate = makedate
11 util.getuser = getuser
13 util.getuser = getuser
14 util.getpid = getpid
@@ -108,7 +108,7 backup bundles get logged
108 saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob)
108 saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob)
109 $ hg blackbox -l 6
109 $ hg blackbox -l 6
110 1970/01/01 00:00:00 bob (*)> strip tip (glob)
110 1970/01/01 00:00:00 bob (*)> strip tip (glob)
111 1970/01/01 00:00:00 bob (*)> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/*-backup.hg (glob)
111 1970/01/01 00:00:00 bob (*)> saved backup bundle to $TESTTMP/blackboxtest2/.hg/strip-backup/73f6ee326b27-7612e004-backup.hg (glob)
112 1970/01/01 00:00:00 bob (*)> updated base branch cache in * seconds (glob)
112 1970/01/01 00:00:00 bob (*)> updated base branch cache in * seconds (glob)
113 1970/01/01 00:00:00 bob (*)> wrote base branch cache with 1 labels and 2 nodes (glob)
113 1970/01/01 00:00:00 bob (*)> wrote base branch cache with 1 labels and 2 nodes (glob)
114 1970/01/01 00:00:00 bob (*)> strip tip exited 0 after * seconds (glob)
114 1970/01/01 00:00:00 bob (*)> strip tip exited 0 after * seconds (glob)
General Comments 0
You need to be logged in to leave comments. Login now