Patchwork D7551: tests: fix test-chg.t to work with py3 (no setprocname)

login
register
mail settings
Submitter phabricator
Date Dec. 6, 2019, 3:37 p.m.
Message ID <c400684ddc359560e3956deb1f61eae7@localhost.localdomain>
Download mbox | patch
Permalink /patch/43599/
State Not Applicable
Headers show

Comments

phabricator - Dec. 6, 2019, 3:37 p.m.
Closed by commit rHGfe94af4e3dc9: tests: fix test-chg.t to work with py3 (no setprocname) (authored by spectral).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7551?vs=18476&id=18489

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7551/new/

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

AFFECTED FILES
  tests/test-chg.t

CHANGE DETAILS




To: spectral, #hg-reviewers, pulkit
Cc: mjpieters, mercurial-devel

Patch

diff --git a/tests/test-chg.t b/tests/test-chg.t
--- a/tests/test-chg.t
+++ b/tests/test-chg.t
@@ -229,11 +229,13 @@ 
   server.log.1
 
 print only the last 10 lines, since we aren't sure how many records are
-preserved:
+preserved (since setprocname isn't available on py3, the 10th-most-recent line
+is different when using py3):
 
   $ cat log/server.log.1 log/server.log | tail -10 | filterlog
+  YYYY/MM/DD HH:MM:SS (PID)> confighash = ... mtimehash = ... (py3 !)
   YYYY/MM/DD HH:MM:SS (PID)> forked worker process (pid=...)
-  YYYY/MM/DD HH:MM:SS (PID)> setprocname: ...
+  YYYY/MM/DD HH:MM:SS (PID)> setprocname: ... (no-py3 !)
   YYYY/MM/DD HH:MM:SS (PID)> received fds: ...
   YYYY/MM/DD HH:MM:SS (PID)> chdir to '$TESTTMP/extreload'
   YYYY/MM/DD HH:MM:SS (PID)> setumask 18