Patchwork D9502: tests: conditionalize output in test-ssh.t with chg+py3

login
register
mail settings
Submitter phabricator
Date Dec. 2, 2020, 6:08 p.m.
Message ID <differential-rev-PHID-DREV-bhfa7xngp4lrgrajqumi-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47784/
State Superseded
Headers show

Comments

phabricator - Dec. 2, 2020, 6:08 p.m.
pulkit created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Because of our wrapping around sys.std* and python3 internal buffering, the
  output order changes. The change in order seems like harmless because just few
  lines above the same command is run which results in same output.
  
  This makes `test-ssh.t` works with --chg on python 3.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D9502

AFFECTED FILES
  tests/test-ssh.t

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-ssh.t b/tests/test-ssh.t
--- a/tests/test-ssh.t
+++ b/tests/test-ssh.t
@@ -331,9 +331,10 @@ 
   remote: adding changesets
   remote: adding manifests
   remote: adding file changes
+  remote: added 1 changesets with 1 changes to 1 files (py3 !)
   remote: KABOOM
   remote: KABOOM IN PROCESS
-  remote: added 1 changesets with 1 changes to 1 files
+  remote: added 1 changesets with 1 changes to 1 files (no-py3 !)
 
 #endif