[PATCH] tests: unify test-nested-repo
Adrian Buehlmann
adrian at cadifra.com
Sun Sep 12 08:25:23 CDT 2010
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1284297700 -7200
# Node ID 3a4d0419a734d4122ad45c0aea90475d96d338b1
# Parent b0d9a8db56fa74c170f43d7ff970a5d72d9e1ff8
tests: unify test-nested-repo
diff --git a/tests/test-nested-repo.out b/tests/test-nested-repo.out
deleted file mode 100644
--- a/tests/test-nested-repo.out
+++ /dev/null
@@ -1,9 +0,0 @@
-# should print nothing
-# should fail
-abort: path 'b/x' is inside repo 'b'
-abort: path 'b/x' is inside repo 'b'
-# should fail
-abort: path 'b/x' is inside repo 'b'
-# should arguably print nothing
-# should fail
-abort: path 'b/a' is inside repo 'b'
diff --git a/tests/test-nested-repo b/tests/test-nested-repo.t
old mode 100755
new mode 100644
rename from tests/test-nested-repo
rename to tests/test-nested-repo.t
--- a/tests/test-nested-repo
+++ b/tests/test-nested-repo.t
@@ -1,28 +1,36 @@
-#!/bin/sh
+ $ hg init a
+ $ cd a
+ $ hg init b
+ $ echo x > b/x
-hg init a
-cd a
-hg init b
-echo x > b/x
+Should print nothing:
-echo '# should print nothing'
-hg add b
-hg st
+ $ hg add b
+ $ hg st
-echo '# should fail'
-hg st b/x
-hg add b/x
+Should fail:
-echo '# should fail'
-hg add b b/x
-hg st
+ $ hg st b/x
+ abort: path 'b/x' is inside repo 'b'
+ $ hg add b/x
+ abort: path 'b/x' is inside repo 'b'
-echo '# should arguably print nothing'
-hg st b
+Should fail:
-echo a > a
-hg ci -Ama a
+ $ hg add b b/x
+ abort: path 'b/x' is inside repo 'b'
+ $ hg st
-echo '# should fail'
-hg mv a b
-hg st
+Should arguably print nothing:
+
+ $ hg st b
+
+ $ echo a > a
+ $ hg ci -Ama a
+
+Should fail:
+
+ $ hg mv a b
+ abort: path 'b/a' is inside repo 'b'
+ $ hg st
+
More information about the Mercurial-devel
mailing list