tests: unify test-lock-badness
authorAdrian Buehlmann <adrian@cadifra.com>
Thu, 26 Aug 2010 12:41:00 +0200
changeset 12071 45ff6dcf82ea
parent 12070 fddacca3202e
child 12072 010025717202
tests: unify test-lock-badness
tests/test-lock-badness
tests/test-lock-badness.out
tests/test-lock-badness.t
--- a/tests/test-lock-badness	Sun Aug 29 22:55:37 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-hg init a
-echo a > a/a
-hg --cwd a ci -A -m a
-hg clone a b
-echo b > b/b
-hg --cwd b ci -A -m b
-chmod 100 a/.hg/store
-hg --cwd b push ../a
-chmod 700 a/.hg/store
--- a/tests/test-lock-badness.out	Sun Aug 29 22:55:37 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-adding a
-updating to branch default
-1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-adding b
-pushing to ../a
-abort: could not lock repository ../a: Permission denied
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-lock-badness.t	Thu Aug 26 12:41:00 2010 +0200
@@ -0,0 +1,21 @@
+  $ hg init a
+  $ echo a > a/a
+  $ hg -R a ci -A -m a
+  adding a
+
+  $ hg clone a b
+  updating to branch default
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+
+  $ echo b > b/b
+  $ hg -R b ci -A -m b
+  adding b
+
+  $ chmod 100 a/.hg/store
+
+  $ hg -R b push a
+  pushing to a
+  abort: could not lock repository a: Permission denied
+
+  $ chmod 700 a/.hg/store
+