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

login
register
mail settings
Submitter Mads Kiilerich
Date Jan. 25, 2013, 5:17 a.m.
Message ID <2c1f8cffefbbe3bd0502.1359091027@mk-desktop>
Download mbox | patch
Permalink /patch/729/
State Deferred, archived
Headers show

Comments

Mads Kiilerich - Jan. 25, 2013, 5:17 a.m.
# HG changeset patch
# User Mads Kiilerich <madski@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.

Patch

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