changeset 11811:31c3dddce8cb

tests: unify test-symlink-root
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Thu, 12 Aug 2010 23:02:12 +0900
parents 8c01fc10cb67
children 6f12f53ae795
files tests/test-symlink-root tests/test-symlink-root.out tests/test-symlink-root.t
diffstat 3 files changed, 10 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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