changeset 43800:fe94af4e3dc9

tests: fix test-chg.t to work with py3 (no setprocname) Differential Revision: https://phab.mercurial-scm.org/D7551
author Kyle Lippincott <spectral@google.com>
date Thu, 05 Dec 2019 13:48:36 -0800
parents 5558e3437872
children 3fe91bcd5199
files tests/test-chg.t
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-chg.t	Tue Nov 26 16:10:21 2019 -0800
+++ b/tests/test-chg.t	Thu Dec 05 13:48:36 2019 -0800
@@ -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