[PATCH] tests: unify test-pull-permission
Adrian Buehlmann
adrian at cadifra.com
Sun Sep 12 16:29:38 CDT 2010
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1284326573 -7200
# Node ID 094912bd5342f9c6d0360bd9ebc82910eab5ce1b
# Parent 2ad17346e3eec2b75e3a325838040cd3440861f2
tests: unify test-pull-permission
diff --git a/tests/test-pull-permission.out b/tests/test-pull-permission.out
deleted file mode 100644
--- a/tests/test-pull-permission.out
+++ /dev/null
@@ -1,12 +0,0 @@
-requesting all changes
-adding changesets
-adding manifests
-adding file changes
-added 1 changesets with 1 changes to 1 files
-updating to branch default
-1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-checking changesets
-checking manifests
-crosschecking files in changesets and manifests
-checking files
-1 files, 1 changesets, 1 total revisions
diff --git a/tests/test-pull-permission b/tests/test-pull-permission.t
old mode 100755
new mode 100644
rename from tests/test-pull-permission
rename to tests/test-pull-permission.t
--- a/tests/test-pull-permission
+++ b/tests/test-pull-permission.t
@@ -1,19 +1,30 @@
-#!/bin/sh
+ $ mkdir a
+ $ cd a
+ $ hg init
+ $ echo foo > b
+ $ hg add b
+ $ hg ci -m "b"
-mkdir a
-cd a
-hg init
-echo foo > b
-hg add b
-hg ci -m "b"
+ $ chmod -w .hg/store
-chmod -w .hg/store
+ $ cd ..
-cd ..
+ $ hg clone a b
+ requesting all changes
+ adding changesets
+ adding manifests
+ adding file changes
+ added 1 changesets with 1 changes to 1 files
+ updating to branch default
+ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-hg clone a b
+ $ chmod +w a/.hg/store # let test clean up
-chmod +w a/.hg/store # let test clean up
+ $ cd b
+ $ hg verify
+ checking changesets
+ checking manifests
+ crosschecking files in changesets and manifests
+ checking files
+ 1 files, 1 changesets, 1 total revisions
-cd b
-hg verify
More information about the Mercurial-devel
mailing list