[PATCH 08 of 10 stable] tests: fix test for pushing corrupted largefile

Mads Kiilerich mads at kiilerich.com
Thu Jan 24 23:17:07 CST 2013


# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1359090917 -3600
# Branch stable
# Node ID 2c1f8cffefbbe3bd0502be34d7f718714a6e4a42
# Parent  a509823f9bd8cb48de18136c1c4a7472531bab1e
tests: fix test for pushing corrupted largefile

The test no longer tested that the server prevented pushing a corrupt
largefile. It tested what happened when the server already had a corrupt
largefile - and that is not relevant for this test.

diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t
--- a/tests/test-largefiles.t
+++ b/tests/test-largefiles.t
@@ -1555,9 +1555,9 @@
   $ cd ..
 
 putlfile errors are shown (issue3123)
-Corrupt the cached largefile in r7 and in the usercache (required for testing on vfat)
+Corrupt the cached largefile in r7 and move it out of the servers usercache
   $ echo corruption > "$TESTTMP/r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8"
-  $ echo corruption > "$USERCACHE/4cdac4d8b084d0b599525cf732437fb337d422a8"
+  $ mv "$USERCACHE/4cdac4d8b084d0b599525cf732437fb337d422a8" .
   $ hg init empty
   $ hg serve -R empty -d -p $HGPORT1 --pid-file hg.pid \
   >   --config 'web.allow_push=*' --config web.push_ssl=False


More information about the Mercurial-devel mailing list