Patchwork [3,of,4,main-line] test: enforce bundle1 in 'test-push-cgi.t'

login
register
mail settings
Submitter Pierre-Yves David
Date Nov. 4, 2015, 2:50 p.m.
Message ID <5b36c9016c6303d1d5bb.1446648627@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/11288/
State Accepted
Headers show

Comments

Pierre-Yves David - Nov. 4, 2015, 2:50 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1445347676 -7200
#      Tue Oct 20 15:27:56 2015 +0200
# Node ID 5b36c9016c6303d1d5bbeeb45984d5f421ad77da
# Parent  ede1aaf47b922fa872b7fd32680f0aa014c13ac7
# EXP-Topic generaldelta
# Available At http://hg.netv6.net/marmoute-wip/mercurial/
#              hg pull http://hg.netv6.net/marmoute-wip/mercurial/ -r 5b36c9016c63
test: enforce bundle1 in 'test-push-cgi.t'

This test is checking bundle1 application, therefore we have to enforce the generated
bundle to be a bundle1.

Patch

diff --git a/tests/test-push-cgi.t b/tests/test-push-cgi.t
--- a/tests/test-push-cgi.t
+++ b/tests/test-push-cgi.t
@@ -29,11 +29,11 @@  create hgweb invocation script
 test preparation
 
   $ . "$TESTDIR/cgienv"
   $ REQUEST_METHOD="POST"; export REQUEST_METHOD
   $ CONTENT_TYPE="application/octet-stream"; export CONTENT_TYPE
-  $ hg bundle --all bundle.hg
+  $ hg bundle --type v1 --all bundle.hg
   1 changesets found
   $ CONTENT_LENGTH=279; export CONTENT_LENGTH;
 
 expect failure because heads doesn't match (formerly known as 'unsynced changes')