##// END OF EJS Templates
tests: match time by a glob to fix intermittent failures of test-lock-badness.t...
Simon Heimberg -
r20653:3bfac190 default
parent child Browse files
Show More
@@ -1,41 +1,41 b''
1 1 #if unix-permissions no-root no-windows
2 2
3 3 Prepare
4 4
5 5 $ hg init a
6 6 $ echo a > a/a
7 7 $ hg -R a ci -A -m a
8 8 adding a
9 9
10 10 $ hg clone a b
11 11 updating to branch default
12 12 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
13 13
14 14 One process waiting for another
15 15
16 16 $ cat > hooks.py << EOF
17 17 > import time
18 18 > def sleepone(**x): time.sleep(1)
19 19 > def sleephalf(**x): time.sleep(0.5)
20 20 > EOF
21 21 $ echo b > b/b
22 22 $ hg -R b ci -A -m b --config hooks.precommit="python:`pwd`/hooks.py:sleepone" > stdout &
23 23 $ hg -R b up -q --config hooks.pre-update="python:`pwd`/hooks.py:sleephalf"
24 24 waiting for lock on working directory of b held by '*:*' (glob)
25 got lock after 1 seconds
25 got lock after ? seconds (glob)
26 26 warning: ignoring unknown working parent d2ae7f538514!
27 27 $ wait
28 28 $ cat stdout
29 29 adding b
30 30
31 31 Pushing to a local read-only repo that can't be locked
32 32
33 33 $ chmod 100 a/.hg/store
34 34
35 35 $ hg -R b push a
36 36 pushing to a
37 37 abort: could not lock repository a: Permission denied
38 38 [255]
39 39
40 40 $ chmod 700 a/.hg/store
41 41 #endif
General Comments 0
You need to be logged in to leave comments. Login now