Patchwork [2,of,2,STABLE] test-worker: disable tests of forked workers on Windows

login
register
mail settings
Submitter Yuya Nishihara
Date April 20, 2017, 3:09 p.m.
Message ID <9ca22928766f4bafd8ad.1492700981@mimosa>
Download mbox | patch
Permalink /patch/20271/
State Accepted
Headers show

Comments

Yuya Nishihara - April 20, 2017, 3:09 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1492696288 -32400
#      Thu Apr 20 22:51:28 2017 +0900
# Branch stable
# Node ID 9ca22928766f4bafd8adb4f9a49625ca69a48c44
# Parent  86688d9fb4bcec3f4672aea9f2f94f5dd9af61c0
test-worker: disable tests of forked workers on Windows

The number of the "Traceback" lines differs on Windows because the main
process does not raise SystemExit.
Matt Harbison - April 21, 2017, 12:26 a.m.
On Thu, 20 Apr 2017 11:09:41 -0400, Yuya Nishihara <yuya@tcha.org> wrote:

> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1492696288 -32400
> #      Thu Apr 20 22:51:28 2017 +0900
> # Branch stable
> # Node ID 9ca22928766f4bafd8adb4f9a49625ca69a48c44
> # Parent  86688d9fb4bcec3f4672aea9f2f94f5dd9af61c0
> test-worker: disable tests of forked workers on Windows
>
> The number of the "Traceback" lines differs on Windows because the main
> process does not raise SystemExit.
>

Works for me, thanks.

Patch

diff --git a/tests/test-worker.t b/tests/test-worker.t
--- a/tests/test-worker.t
+++ b/tests/test-worker.t
@@ -70,6 +70,8 @@  Run tests without worker by forcing a lo
   run
   done
 
+#if no-windows
+
 Known exception should be caught, but printed if --traceback is enabled
 
   $ hg --config "extensions.t=$abspath" --config 'worker.numcpus=2' \
@@ -88,3 +90,5 @@  Traceback must be printed for unknown ex
   $ hg --config "extensions.t=$abspath" --config 'worker.numcpus=2' \
   > test 100000.0 exc 2>&1 | grep '^Traceback'
   Traceback (most recent call last):
+
+#endif