tests: unify test-symlink-root
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Thu, 12 Aug 2010 23:02:12 +0900
changeset 11811 31c3dddce8cb
parent 11810 8c01fc10cb67
child 11812 6f12f53ae795
tests: unify test-symlink-root
tests/test-symlink-root
tests/test-symlink-root.out
tests/test-symlink-root.t
--- a/tests/test-symlink-root	Thu Aug 12 23:00:36 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-"$TESTDIR/hghave" symlink || exit 80
-
-hg init a
-ln -s a link
-cd a
-echo foo > foo
-hg status
-hg status ../link
--- a/tests/test-symlink-root.out	Thu Aug 12 23:00:36 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-? foo
-? foo
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-symlink-root.t	Thu Aug 12 23:02:12 2010 +0900
@@ -0,0 +1,10 @@
+  $ "$TESTDIR/hghave" symlink || exit 80
+
+  $ hg init a
+  $ ln -s a link
+  $ cd a
+  $ echo foo > foo
+  $ hg status
+  ? foo
+  $ hg status ../link
+  ? foo