Patchwork [1,of,3] test: copy test-push-http.t to testpush-http-bundle1.t

login
register
mail settings
Submitter Pierre-Yves David
Date June 1, 2015, 4:48 a.m.
Message ID <f12d6f2ad4e45c66a93d.1433134117@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9417/
State Accepted
Headers show

Comments

Pierre-Yves David - June 1, 2015, 4:48 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1432756491 25200
#      Wed May 27 12:54:51 2015 -0700
# Node ID f12d6f2ad4e45c66a93d95980ab52f8e5ed8dfde
# Parent  e41986932696560056e1d4d1a8f90c30da4904de
test: copy test-push-http.t to testpush-http-bundle1.t

We want to keep both code path tested. The test is a bit too extensive to
simply introduce dual testing in it so we make a copy for each protocol
version.

Patch

diff --git a/tests/test-push-http.t b/tests/test-push-http-bundle1.t
copy from tests/test-push-http.t
copy to tests/test-push-http-bundle1.t
--- a/tests/test-push-http.t
+++ b/tests/test-push-http-bundle1.t
@@ -1,7 +1,15 @@ 
 #require killdaemons
 
+This test check behavior related to bundle1 that changed or are likely to change with bundle2. feel free to factorise any part of the test for which it is false.
+
+  $ cat << EOF >> $HGRCPATH
+  > [experimental]
+  > # This test is dedicated to interaction through old bundle
+  > bundle2-exp = False
+  > EOF
+
   $ hg init test
   $ cd test
   $ echo a > a
   $ hg ci -Ama
   adding a